How to orient planes on curve to face them in outside direction

I have a curve around a polysurface or a closed polysurface. On that curve I create many planes in GH.

I would like all planes to share the same up direction, which would be the same as the World Up direction. Each plane should also be directed outside of the undelaid polysurface/closed polysurface, so the plane normal vector should be the same as the normal vector direction of the closest point on the polysurface/closed polysurface. Do you have any tips?

If I’m understanding correctly, you want to:

(1) align your planes to the world Z direction
(2) adjust your plane normals to the found normal vector at the closest point on the polysurface

For #1 you can use Align Plane (with guide vector world Z); for #2 you can use Brep Closest Pt + Adjust Plane (using the normal from Brep Closest Pt).

Post a file?

1 Like

Thanks a lot.

For you an example with Pufferfish:


Adjust planes on curve to surface normal and align to world Z.gh (36.5 KB)