Mesh from closed polyline when it fails to make a mesh?


#1

I was using mesh from closed polyline, but there are moments when it stops working.

For instance one below at the center is null and cannot be converted to mesh:


meshfromclosedpolyline.gh (4.4 KB)

What are other methods normally used to mesh closed polyline?

Adding point at center always create mesh from a closed polyline but then issue with concave/convex shapes occur.


(Dale Fugier) #2

Hi Tom,

Mesh.CreateFromClosedPolyline requires that the input polygon must project to a plane and the projected polygon must be a simple closed curve. My guess is the polygon that isn’t meshing doesn’t meet the projection criteria.

– Dale


#3

I usually triangulate closed non-planar polylines first, using Polyline.TriangulateClosedPolyline, and then generate a mesh from this. Works pretty well:


Weaverbird's "Mesh from Lines" polygon division