Hi, here is a little brain teaser:

I have a graph consisting of lines and looking exactly like a mesh - so the lines are arranged as if they were connected as triangles. Now I want to find all triangles in that graph and create vertices and indices out of them.

How can I do it?