Analyze for possible closed triangles

I created to Polylines. The second one (red) is based on the first one (blue) by dividing it and randomly connect the points.

Now in some situations I`m getting closed triangles, like the green triangle I have highlighted. Is there a possible way to extract these triangles or create a surface out of the lines/segments

Thank you


triangles.gh (12.9 KB)

You could try with Weaverbird’s Mesh From Lines.


Triangles_re.gh (16.7 KB)

Perfect !!

Thank you very much