Hello everyone.
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:
{1,3,4}
{2,3,5}
{5,6,7}
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