CreateContourCurves and CreatePlanarBrep after Splitting Mesh with Plane

split
developer
rhinocommon
mesh

#1

So after I split a mesh into 2 pieces with a plane, I use
Curve[] curves = Mesh.CreateContourCurves(leftSideMesh, plane);
to create an array of Breps like so:
Brep[] breps = Brep.CreatePlanarBreps(curves);

Now I encountered the following problem: For the meshes on one side of the plane this always works, but for the mehes that are on the other side of the cutting plane the returned Brep array is empty sometimes.

Can someone tell me why and how to fix this?

Edit: Note that I use the already cut mesh for creating curves.


(Dale Fugier) #2

Hi @Ivan1, without your model and some sample code, we’ll really never know what’s going on. But the first think to do is verify the curves you are passing to Brep.CreatePlanarBreps are closed.

– Dale