Select connected surfaces and unroll

Hi all.
I do need to select all the connected surfaces connected to the biggest surface and unroll them together to form a single unrolled shape and I can’t find a proper algorithm to achieve this. I can select the biggest surface by measuring the areas of each surface but I can’t find a way to select also the “connected” surfaces on the sides of the main one. Any help will be appreciated.

Select Connected Surfaces.3dm (111.4 KB)

You can give it a try with Squish + ExtractRenderMesh, and fyi.

Not the unrolling is the issue but finding the neighbor surfaces until the sharp corners and treating them all together like one shape for unrolling. In this example are three connected surfaces but in other projects can be more than tree.

Give it a try with Squisher + Clash, and fyi.
SquishClash.gh (25.3 KB)

https://www.food4rhino.com/en/app/squisher

Good algorithm but it assumes that the surfaces will be oriented in a certain way which won’t be the case. I do found a better one using the help of ChatGPT and the “Unroll Polysurface“ from Pufferfish.

Select Connected Surfaces.gh (56.1 KB)

@Cumberland, does this help?
Select Connected Surfaces-b.gh (23.1 KB)

Not very great.

I see why. Will get back to it.

Simpler with collision:
Select Connected Surfaces-e.gh (37.9 KB)

Not unrolling it anymore as that’s not an issue


Cull component outputs all 3 connected faces.

Cheers!