How to fix grasshopper automatically changing orientation of frames

251218.zip (8.2 MB)

Hi,

my partner and I have a specific problem with our roof structure. For a module in university we have created a parametric roof structure, that is supposed to portray tree crowns and we designed suitable supports for the roof. We want to construct the roof structure out of a timber grid shell structure. That is why we made a mesh out of our big parametric surface. Now we are confronted with a big problem: We would like every curve of the mesh to have the same cross section and orientation, however sometimes the cross section flips and we don´t know how to fix it unfortunately. We would be more than grateful, if somebody could help.

Greetings from Germany :slight_smile:

you can use something like Align Plane + an arbitrary vector direction like Z_vector to orient each plane X-axis toward world_Z:

keep in mind that, because of that alignment, the X-direction of the rectangle you are building on each plane will point vertically, so it will be the beam height, and the Y-direction will point horizontally, so it will be beam width (you might want to invert those like this)

251218_Align_Plane.gh (128.1 KB)

thank you so much for your help and explanation!!