Joining (or grouping) discontinuous but planar curves (or surfaces) in a list

I’m trying to get the contours (or slices) of a mesh that is composed of discontinuous bodies. Currently, the challenge is that the list of curves that comes out alternates between one body and the other. I’ve tried this with the Contour component, the Xylinus slicer and the Droid slicer, and the issue is the same.

I’d like to join or group all the curves that are coplanar so that I can animate the series of contours.

How can I join or group coplanar curves? Ultimately I’d like a list encompassing one item for each contour slice.

Thanks!

As I remember they come out grouped in the same branch using the contour component ,maybe It is the plane intersection component

Thanks. It says the output is grouped by section. But when I list item for the list of curves, it shows me a bunch of slices of one body or the other (depending on the index number)

you should use the tree branch, since they are on the same branch. List item will give you every n-item of each branch.

Thanks! That works for me when doing contours of breps. When I do a contour of a mesh however, incrementing path item gives me alternating curves from each body.

hmm maybe you could upload the file?

Sure thing! Excuse the mess.

slices3.gh (19.0 KB)

as you sent the file the 2 geometries are overlaying.

slices4.gh (17.4 KB)

my bad, opened it in R5 they werent overlaying.

I’m on Rhino 6 for Mac if that matters.