Flatten a triangular mesh

Hello friends
I tried to flatten a triangular mesh. In the first step, I considered a face in the center of the mesh as the main plane and placed it on the XY plane. I got the next points based on the distance and marked them on XY plane.
Now I wanted to take an advanced step forward and use it with more pages. In this mesh, a series of points are shared between several pages.
The method that came to my mind is the point averaging method. And I would say that in this method the length of the members and the angle between them change.
flatten a triangular mesh.gh (22.6 KB)
2021-07-01_13-07-58

Try this! Some geometries, like your second mesh can’t be flattened without distortions. It is geometrically impossible. In this cases convert the mesh to brep and squish it.

Unroll.gh (125.6 KB)

Here’s how you would do this with Kangaroo:

flatten a triangular mesh.gh (26.2 KB)

1 Like

Thank @martinsiegrist
I wanted to work according to this article.
Development_of_a_flattening_system_for_sheet_metal.pdf (3.6 MB)

I knew I already saw this in another thread… Flattening Surfaces - Grasshopper - McNeel Forum

The paper is six years old.

We have perfectly suitable tools available in Kangaroo. Thanks to @DanielPiker

1 Like

thanks to @DanielPiker
I wanted to understand the logic of this algorithm
Where does the ratio of change in length and angles come from?