Advice requested re: data trees and selecting then grouping items

Hi,

I’ve been trying to figure out how to group this data tree per the graphic attached. It may very well be an easy thing, and I’ve just fried my noodle on some preceeding steps, but any help/advice would be appreciated. The ultimate goal is to be able to group the curves themselves and either join, or interpcrv from them, to create a single curve from the origin connecting each of the branches in turn, as separate single curves, as per the graphic:

The grasshopper script is attached with the appropriate data internalised.


240324 Data Trees + Grouping Investigation.gh (36.4 KB)

Thank you.

That makes no sense to me at all.

Is this a better graphic to help you understand what I’m wanting to do? I want to isolate each continuous set of curves/branches, in order to join them into single curves.

1 Like

Much better, yes!

Hello
if I understand well you wanted a polyline going from top to bottom.
If you have the topology of the network of curves, you could extract the points that are just linked to ONE point. They are the leaves and root of the network.
I used one of Nautilus component for lines topology but could surely be done with SandBox or other tool.
Having the points you need to say to Shortest Walk plugin which path you want.

240324 Data Trees + Grouping Investigation LD.gh (31.4 KB)

Wonderful, that is precisely what I was hoping for. Many thanks @laurent_delrieu !