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

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: (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.

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

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

1 Like