Rotating meshes - folding up sides into a rectangular tube

Hello, I’m building a sheet metal part that gets folded up into a rectangular tube.

I’m trying to bend leg1 around the axis between the two leg1BendLinePoints

I’m having zero success and must be much more confused than I thought. :slight_smile:

I have this in a playground here:

This is an example of what I’m trying to get to:

Any assistance would be great. Thank you.

A couple of points

  1. You need to rotate justLeg1. leg1 got removed during getThisMeshIntersectWithThatMesh

  2. As you have already set the position use setParent rather than .parent - see

Hopefully this is closer to what you want


Oh wow… bad names bite me again.

Thank you sir!

Update… with it working now. Thanks again @JohnK


This looks lovely and works perfectly. It looks like @JohnK really made your day here :smiley: