Find tree braches of objects that are in the boundary

Hello everyone,
I have surface in grasshopper that divided into subsets contain 4 surfaces. and I have a boundary that is on this suface. I want to find the tree braches that are within this boundary. what should I do?
Boundary.gh (16.7 KB)

Your code is far more complicated than it needs to be.


Boundary_2023Sep18a.gh (8.8 KB)

1 Like

Thank you, but I want to keep the state where there are four cells in each branch.Do you know what I mean?

I want these branch pathes.

I see no reason for that but if you must, you can add the purple group (below):


Boundary_2023Sep18b.gh (19.0 KB)

If you must make it complicated, I won’t follow your lead, :wink:

1 Like

Thanks :sweat_smile:

1 Like