Tree branches logic


Hello everyone I can’t figure this out, I need to create a series of lines from point A to some points belonging to a tree and a series of lines from point B to the rest of points belonging to the same tree, with the rule in the image: point A and B need to connects to the points in parenthesis

the picture on the left is not working.

R

It’s always a good idea to post your GH file

1 Like

@riccardo.foschi2 looks to me as if you need to structure the data in the node I highlighted so that you retrieve 2 branches that contain the data for points A and B.
But as @adel.albloushi said it will be better if you post your code.

Thanks for your answer, unfortunatelly I can’t post the code because it’s an algorithm covered by copyright, and I wasn’t able to reproduce a simpler example with the same structure.
In the mean time I had an idea, what about I duplicate the points A and B 4 times and graft it? Will it work?

@riccardo.foschi2
yes, I think that could work.

18 coordinates protected by copyright. Wow!

:rofl:

:rotating_light: So I stole the coordinates from your screenshot… :rotating_light:

I leave it up to you to interpret my screenshot.

3 Likes

Thanks! I much appreciate your help!!

This is defenitelly what I need!
R

1 Like

Definitely a solution.

1 Like