Mesh.CreateFromBrep creating flat mesh


I’m trying to use Mesh.CreateFromBrep to mesh an extrusion. The result I’m getting is a flat mesh as shown in the pic below. I’ve tried various meshing parameters but still the same result. Any suggestions?


Hi Sam,

You will need to convert the Extrusion to a Brep and pass that.
use Extrusion.ToBrep() to get the brep.

Also be aware that Mesh.CreateFromBrep() returns an array of meshes.
might it be you are only catching the first one?

does this help?

You got it, I was only catching the first one.


1 Like