Add diagonal lines if polygon has more than 4 sides

unhandled

(David S. Mavrov) #1

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)


#2

this might be useful
PentagonV1.gh (14.7 KB)


(David S. Mavrov) #3

Seems so! Will test it out asap! Thanks!


(David S. Mavrov) #4

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.

def.gh (74.4 KB)