Help with getting item/branches from a tree

So, as you can see, I’ve got these 4 planar srfs I applied contour on them. My question is, how do I get the contour for each srf as a separated list/tree?
The last pic shows the branches and I guess the key is to select the 4 branches I marked. How do I do this?

GH file attached.

Thanks! (20 KB)

Looks like you forgot to internalize your geometry (Geo).

P.S. This old thing might be useful? (20.0 KB)

vTrE cluster:

vList cluster:

Use Shift Paths after Loft.

1 Like

Using my own four triangular surfaces (a pyramid), I found that the planes at the center of each one converged at some point in your code. I had to simplify it to some extent… Is this what you intended? The ‘path_idx’ slider chooses among the four sides.

Oops! As I was about to post this, I noticed that one of the four surfaces extruded inward instead of outward! No doubt due to the inconsistent way I created the surfaces manually… But I’m not going to take the time now to fix that, sorry. (29.9 KB)



Simplified: (31.5 KB)

Will add a render shortly, then a different play on the same idea…

Later… This method (below, yellow group) finds the base lines and divides them with PFrames that intersect the surfaces. No performance advantage at all over the Contours. (33.2 KB)