Hi evertone,
I’m tring to solve this problem in this simple structure made of 18 triangles and 19 lines.
For each curve, I want to associate the triangles for which one of the three sides coincides with the curve itself.
The solution lies in using the midpoints of the three sides of each triangle: if one of these midpoints coincides with the midpoint of the line, the triangle will be associated.In the end the that structure should be organise in 19 groups, like the total number of the lines, and in each group, n triangles associated to that line.
For example, like in the image. the branch/group of the red line will have tree items, the green one, the violet and the blue.
I tried 2 solutions:
1- using closest points component index and list item. But the data trees are not matching.
2- using create set and member index and list item. still data tree are not matching.
Can someone help me?
Thanks!
You can find the file attached here
triangles line groups.gh (12.6 KB)