Add diagonal lines if polygon has more than 4 sides

I can´t seem to create a proper def, which can add diagonal lines if a polygon has more than 4 sides.

Here is an example geometry:

And here is what I aim to achieve:

Rhino file:
final.3dm (1019.5 KB)

this might be useful (14.7 KB)

1 Like

Seems so! Will test it out asap! Thanks!

In my case it does not do the job. Not always the U and V are under 90 degrees angle. So, as a start we have a set of intersected lines and we need to identify which ones form polygons with more than 4 corners. (74.4 KB)