Getting a contour from a mesh based on a plane

Hello everyone:) so im trying to get the cross-section contour of a mesh based on a defined plane. But I have only managed to get the upper most contour (highlighted in green), based on the code someone else posted a while a go. Does someone know how to solve this?
Thanks :slight_smile:

branch_outline_1.gh (14.5 KB)
branch_outline1.3dm (7.0 MB)

That is not a contour, it’s the “Naked Edges” of the mesh. Maybe you want this?


mesh_plane_2024Aug19a.gh (7.5 KB)

P.S. Or maybe you want to use Contour?


mesh_Contour_2024Aug19a.gh (2.9 KB)

For a given position of your mesh where it might be below the Rhino plane you might want to evaluate its bounding box:
meshsection.gh (581.7 KB)

Similarly, you can fit a line using its vertices for a quick automatic ‘axis’ and use that for your plane placement:

Extra:
Do you intend to perform rotations of the section plane?

Thanks!! this is great :slight_smile:

Thanks!! I don’t, but this solution also helps :slight_smile: