I want to solve a problem related to triangles and polygons. I’ve built in Revit a polygon completely diagonalized
When I transform the model in Revit to geometry, lines, in Dynamo, I get a list with an index
I would like to get each triangle of the set of lines in terms of indexes of lines.
If the numbers in the graphic are the indexes of the lines, that i get after run Dynamo script, I want my script to get the sets, or permutations, of indexes of lines that form triangles, in form of lists or data.
For example, I would like to get these triangles:
I would like to know that if the fact that the lines of a triangle, unlike the lines of an open polygonal chain, hold an equivalence relation would help to solve this problem.
Thanks a lot