How to Extract the the outer boundary polyline of a Mesh?

Hi,

imagine you have alot of meshes, and would need to extract the outer edgde as a polyline?
Solution has to be generic.

any idea how to do?

Check the documentation for Mesh.GetOutlines.

Will this do?


Mesh outline v1.gh (11.5 KB)

Assuming outer means naked, one can use this native mesh method:


250615_MeshNakedEdges_00.gh (9.5 KB)

to get what most people think of as “outer” in a 3d mesh with multiple holes, do what everybody else already told you to do in previous posts, and then add this script:


re_mesh outer edges.gh (14.9 KB)

This should usually pick the joined edges of whichever hole out outer edge in your mesh most people would think of as “outer”.

It’s a little bit of a fuzzy question: imagine an egg shaped blobby mesh with multiple holes in it - which edge is “outer”?

The script attached places the vertices of each polyline curve in a bounding box aligned to their fit plane, and sorts them so the one that produces the largest area face of a bounding box is at the top of the list.

Short of using minimal bounding box scripts, which are processor intensive for multiple inputs, this is about as good as I think can be done.