Line SDL not matching surface normals

In my definition I’m trying to take a list of circles while using the normals from an evaluated surface to extrude lines using Line SDL.

When I divide each circle by the same amount of points, I have no issues and can use the surface normals to drive the direction of the lines. However, I’m trying to divide the circles at random by a defined set amount of points and that is giving me issues when using the Line SDL component.

I have a feeling the issue can be resolved through some data tree magic, but I’m a bit lost and any guidance would be greatly appreciated.

Thank you.



211209_fixNormals.gh (24.8 KB)


211209_fixNormals_re.gh (29.2 KB)

1 Like

Just what I needed, thank you!