Issue with unrolling of mesh strips

I have various mesh strips that I am trying to unroll and make flat for fabrication.

I am using unroll component from opennest. When I unroll the mesh using that component, the resultant mesh has overlapping faces. How can I avoid that from happening and get a clean mesh?


Unrolling of mesh.gh (127.6 KB)

Here the 3 meshes unrolled with my unpublished tools.
Unrolling of mesh LD.gh (144.0 KB)

1 Like

Thanks @laurent_delrieu !! How do I use your custom tools? I have multiple mesh strips to unroll.

As they are not very reliable they are in a separate plugin that is not published.

here is a way, that could work if your shapes are quite planar.
The idea is to use this function

 private void RunScript(Polyline polyline, object y, ref object A)
  {


    A = Mesh.CreateFromClosedPolyline(polyline);
  }

It creates mesh without inner vertex. So it is easy to flatten. This technique keeps constant length border.


Unrolling of mesh LD2.gh (97.5 KB)

1 Like

Thank you so much! This works really well!

Happy it works.
It will work quite well if border curve is quite flat.
Also this Method in Rhinocommon don’t use the initial mesh so the inner geometry is not taken into account.
It is the reason why I had to develop an alternative tools to deal with more complex geometry. For example for this project