Create brep from ON_Mesh C++

Hello,

Is there a way to create a ON_Brep object from an ON_Mesh object?
I need the brep to be able to compute the intersection with a plane and generate intersection curves that will be later used for lofting.

Thank you

Hi @blondbeer,

The Rhino SDK does provide methods for computing mesh intersections. ON_Mesh::IntersectPlane comes to mind.

If you really want to create a Brep from a mesh, you can use ON_BrepFromMesh. This is the function behind Rhino’s MeshToNURB command.

– Dale