Mesh.CreateFromClosedPolyline Normals Direction/Inconsistency

Hi McNeel,

I tried replacing an old function (that implement TriangulateClosedPolyline) for meshing a closed polyline with Mesh.CreateFromClosedPolyline, but the normals direction of the resulting meshes appear to be inconsistent/hard to predict. In this case, the polylines are all counter clockwise. As you can see, my old function (above) outputs meshes that all face up, while some of the meshes made with Mesh.CreateFromClosedPolyline point down. Any insights as to why that might be?


240527_MeshFromPolylineNormalsIssue_00.gh (11.4 KB)

Best,

Anders

Hi @AndersDeleuran,

I’ve logged an issue a a developer can look into this.

https://mcneel.myjetbrains.com/youtrack/issue/RH-82193

Thanks,

– Dale

1 Like