Pufferfish twisted box and UV directions

Hi everyone! I am having some troubles with morphing an element into a twisted box created by pufferfish. The issue is that given a certain geometry (photo 1), I want to morph an element into the boundary twisted boxes in a certain orientation, but the morphing was somewhat random. I thought it had to do with the orientation of the surfaces that were used to create the twisted boxes, so I aligned them into the needed orientation (see .gh definition). However, the problem seems to be that the ‘Construct Twisted Box’ component changes the UV orientation that I made and the morphed geometry is still not aligned in the way I need it to (photo 2). Is there a way to solve this issue? I haven’t found any similar issue on forums and not sure how to proceed.


Test_twisted_box.gh (34.7 KB)

The issue comes from the order of vertices that make up the twisted box. To solve this you can reorder points using a polar coordinate system before moving them up by your desired height and feeding the 8 points into “Construct Twisted Box”. If the unified orientation is wrong, I believe you can just shift the list of vertices.

Test_twisted_box.gh (51.3 KB)

Yep, that worked exactly as I needed to! Thank you very much, Colin!