Mesh from Brep via Rhino3dm NET

Dear McNeel,

Is it possible to get a Mesh object from a Brep, via Rhino3dm NET library?

The “normal” way of creating a Mesh from Vertices and Faces - works.

But can we directly get a Mesh, from a Brep?

If it is not possible at the moment - do you think we can add the Mesh.CreateFromBrep method to Rhino3dm NET?

Thank you very much for the help, and thank you for this consideration.

You can get meshes from Breps in rhino3dm (also the .NET version) only when you save the 3dm file in Rhino with one view in a mode that creates render meshes - shaded or rendered mode should be ok. You can use the GetMeshes method on geometry to retrieve the render meshes.

The meshing code is not part of rhino3dm and will not be.

1 Like

Hi @nathanletwory ,
I apologize for the late reply.
Thank you very much for the detailed response.

1 Like

Hi @nathanletwory ,

I apologize for returning to this question:

The 3dm file needs to be saved via Rhino?
Not via rhino3dm? Because I can not access View object with rhino3dm. It does not exist in rhino3dm.

Hi Djordje -

The display meshes need to be created in Rhino and then the 3dm file saved in Rhino.
rhino3dm (outside of Rhino) will give you access to those meshes but won’t let you create them.
-wim

2 Likes

Hi @wim ,
Thank you very much for the detailed clarification.

I amended my answer to clearly state that saving with a view with correct display mode needs to be done with Rhino.

2 Likes