# How to create FragmentedPatch in python

**URL:** <https://discourse.mcneel.com/t/how-to-create-fragmentedpatch-in-python/203172>\
**Category:** Grasshopper\
**Tags:** windows, mac, python, rhino8\
**Created:** [April 16, 2025, 1:52pm UTC](https://discourse.mcneel.com/t/how-to-create-fragmentedpatch-in-python/203172 "2025-04-16T13:52:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![AndersDeleuran](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andersdeleuran/32/476683_2.png) [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Post date:** [April 17, 2025, 4:12pm UTC](https://discourse.mcneel.com/t/how-to-create-fragmentedpatch-in-python/203172/7 "2025-04-17T16:12:41Z")

</div>

> [@cfee](#):
>
> Found alternative TriangulateClosedPolyline method…

I haven’t looked at your files (on my phone), but indeed that method has also proved more reliable to me. This might be related/relevant to your case:

> [@Mesh.CreateFromClosedPolyline Normals Direction/Inconsistency](https://discourse.mcneel.com/t/mesh-createfromclosedpolyline-normals-direction-inconsistency/182830):
>
> 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?

---

_[View the full topic](https://discourse.mcneel.com/t/how-to-create-fragmentedpatch-in-python/203172)._
