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?
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.
Assuming outer means naked, one can use this native mesh method:
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:
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.