Split Tree in branches based on similar XY coordinates

Question,

There is a list containing points.
Challenge; split the tree into multiple branches, whereby the items in the branches all have a similar XY coordinate. (in a generic way)

2020-12-14 Split tree based on similar XY coordinates.gh (19.0 KB)

any suggestions?

thanks :slight_smile:

If I remember correctly, I already showed you a way to deal with a similar problem in your previous thread…


2020-12-14 Split tree based on similar XY coordinates_re.gh (25.6 KB)

1 Like

Hi!

Thanks again!
Ok, lets make it 1 level more difficult :slight_smile:.

Thing is that it is also possible that the original tree already consists of multiple branches… Whereby these branches will have to bu ‘sub-divided’. (unfortunately this does not work ‘yet’ with the previous script).

2020-12-14 Split tree based on similar XY coordinates_re_RE.gh (50.8 KB)

Any suggestions?

thanks again :slight_smile:

?


2020-12-14 Split tree based on similar XY coordinates_re_RE_re.gh (53.6 KB)

Hi,

Thank again, almost there!
The data structure is somewhatlocal reordered. any suggestion how to overcome?

Thanks again :slight_smile:


2020-12-14 Split tree based on similar XY coordinates_re_RE_re_re.gh (57.2 KB)

2 Likes

Ahh perfect, Thanks! :+1: :+1: