Plane mesh intersection curve offset direction not consistent

Hi,
I’m currently working on a script where i want to offset the intersection curve of a mesh and a plane. In a next step this curve is offsetted multiple times, but for some reason the offset direction is not consistent when i use different input meshes.


curve offset.gh (4.4 MB)

I thought this might have something to do with the curve dierection, but i haven’t been able to resolve this problem.

Thanks,
Tom

In the Flip component put as a guide curve a circle component. (Now it is connectet to Dispatch). This way you will always have the same direction.

exam

You can also extract a plane from your original curve and put that plane as the input plane for the circle.

Hi David,
Thanks for your response!
However it seems that this still not solves my problem (being that the curve is still offsetted to the outside if I use mesh 1, and to the inside in case of mesh 2).
Any more tips on how i could make sure the curve is offsetted to the same side each time independently of the input mesh I use?

Flip the mesh?