I’ve got a list of n (depending of model) lists containing each one two lists, each one in its turn containing three elements, that could be numbers or strings. I want to order sets of two triangles that share one side, thus I could build a quadrilateral with one and only one diagonal.
I’ve tried to perform sets operations, turn the arrays and objects into strings, filter the lists, but nothing works for me.
I have a pair with the list [ [0,1,2 ] , [ 0,5,6 ] ] , but down there the pair is repeated as [ [0,5,6 ] , [ 0,1,2] ].
I don’t want to have repeated lists, it doesn’t matter which of the two options I can get. I just want to have only [ [0,1,2 ] , [ 0,5,6 ] ] or [ [0,5,6 ] , [ 0,1,2] ] , and thus for all items.
I want to clear up that in the list of the image I’ve got all quadrilaterals within the polgon that have one and only diagonal, being the numbers the indexes of lines. It’s only that the lists, all of them containing two lists of three elements, are repeated with two different orders
Parejas de triángulos que tienen un lado en común: Pairs of triangles that share one side
Thanks in advance