Unroll mesh on a flat surface

Hello, I’m not able to unroll the polysurface/mesh on a flat surface. Can someone please help me out with the script. I’m attaching the file here. Thank You.

Untitled.3dm (8.0 MB)
unnamed.gh (8.6 KB)
I’ve tried using ‘unroll brep’ from lunchbox but it unrolls as cluster of small pieces and not as a whole surface

Can you try attached script?
Brep_unroll.gh (846.0 KB)

1 Like

The polysurfaces have overlapping edges which should be cleaned up.

Thanks a lot mate! It worked! Really grateful :slight_smile:

1 Like

Thanks! I’ll look into that!