Data tree: intersection points per polyhedron

Hi people,

I am trying to get the intersection points between one sphere and multiple polyhedrons. I want to use these points to make a closed polyline, per polyhedron that intersects with the sphere. That doesn’t sound complicated, and I can make it work for one polyhedron. But when I involve multiple polyhedrons I don’t know how to keep the intersection points per polyhedron in one branch, in order to create the polylines.

Can anybody point me in the right direction on how to continue? Any help is much appreciated. Thanks

intersections.gh (163.1 KB)

You could use BBXinstead of BCX.


intersections_re.gh (171.4 KB)

Hi Kim, in this way it works, that’s clever. Thank you!