Hi, the order of the point in the two points list is different, so I can not connect them with lines in a drawn way. What is the easiest way to connect the point in the center to the points around it? Each bunch of points located inside has to connect two bunch of points which are located around like the lines were drawn as help.
Connecting points.gh (8.0 KB)
Here is a solution that features a considerable amount of workarounds…
First, your outer points contain duplicates. I removed them by culling duplicate average points.
Then, ordering inner and outer points counterclockwise in YZ.
For the inner points, the trick is to add 4 “fake” branches to the tree containing a single point that will take the place of the missing group (because you only have, on purpose I suppose, 8 groups in the center).
The points end up sorted.
Finally, remove “fake” branches from the inner tree, and retrieve branches {i+1} and {i-1} because these are indeed the target points. This requires to mod 12. Hooray, you can build the lines.
And the points are not even in order inside the branches, but I’ll leave that to you !
Connecting points.gh (18.8 KB)
Very informative and helpful, thank you.