Hello,
We are developing a plugin for Rhino 7 using RhinoCommon in C#. We’re trying to meshify BREP’s using the Mesh.CreateFromBrep function. When using Surface → plane and then extruding the surface to form a closed polysurface, Mesh.CreateFromBrep only captures the X-Y plane of vertices while keeping the Z plane as 0s. We printed out the mesh vertices to confirm this.
case ObjectType.Brep:
var brep = rObj.Geometry as Brep;
return Mesh.CreateFromBrep(brep, MeshingParameters.Minimal);
Here are the outputted vertices from a simple polysurface turned into a mesh by Mesh.CreateFromBrep:
SmallClosedPolysurface.3dm (38.4 KB)
8,-17,0
8,-4.25,0
8,8.5,0
8,21.25,0
8,34,0
13.5,-17,0
13.5,-4.25,0
13.5,8.5,0
13.5,21.25,0
13.5,34,0
19,-17,0
19,-4.25,0
19,8.5,0
19,21.25,0
19,34,0
24.5,-17,0
24.5,-4.25,0
24.5,8.5,0
24.5,21.25,0
24.5,34,0
30,-17,0
30,-4.25,0
30,8.5,0
30,21.25,0
30,34,0