Orient curves onto multiple angled surfaces

Afternoon everyone!

Hoping someone can help me out. I have a Voronoi Brep where I want to have curves (A circle) projected onto the surface at the correct orientation. I would like the circles to be at the center of the specific faces on this Brep. I am having great difficulty being able to have these circles oriented correctly. Please see the photos as well as my script.


Vorenoi Cube.gh (10.4 KB)

you could use IsPlanar to get the plane on which each surface of the Brep lies, then change that plane Origin to the face center:

Vorenoi Cube_Re.gh (13.6 KB)

just note you have a super tiny surface on which -of course- a circle is also generated:

Awesome, thank you. I’ve been racking my brain for like 2 hours trying to figure out a solution!

You are great!