Hello. Pufferfish “Morph to twisted box” is a great tool but it only works with twisted boxes. I was wondering how to use triangles (or better triangular prisms) to morph geometry. This is my result:
TriPrismMorph.gh (53.7 KB)
It’s a rough sketch and I am curious if someone is interested in developing this further (how about @Michael_Pryor?). The math behid is quite simple (vectors math) and I believe that there is some smarter approach that probably describes the trasformation in a better way.
Brief description:
As a bonus, there’s also my C# attempt to get the same result, but I messed up DataTree branches. But besides that, the script works.
My approach works fine, but there’s an issue transforming mesh normals from the source - I just don’t know yet how transform a vector from source system to target system. Points work just fine…
Also, this tool by @DanielPiker (Cage edit command that can adapt to any form automatically - #46 by DanielPiker) is promising, but it didn’t work correctly in my case.