Help for BooleanSplit c#

hi everyone
HELP FOR BooleanSplit C #
I Need This API BoleanSplit is applied a few cutter simultaneously on an issue, not to act separately for each cutter, in fact, I want to take a result like what is done in Rhino, from friends who dominate C #. help ,me please

boolean (15.4 KB)

brep = Brep.Split(cutter, intersectionTolerance);

Similarly, Split Brep is the same problem with Muiltcutter and why are these codes have error?

brep.split().gh (29.8 KB)

brep = Brep.Split(cutter, normal, planView, intersectionTolerance);

You need to change the access of the inputs to List Access :

private void RunScript(List<Brep> firstSet, List<Brep> secondSet, ref object A)
  A = Brep.CreateBooleanSplit(firstSet, secondSet, RhinoDocument.ModelAbsoluteTolerance);
private void RunScript(Brep brep, List<Brep> cutters, ref object A)
  A = brep.Split(cutters, RhinoDocument.ModelAbsoluteTolerance);
} (13.3 KB)

1 Like

Here is an example of this overload:

private void RunScript(Brep brep, List<GeometryBase> cutters, Vector3d normal, bool planView, ref object A)
  A = brep.Split(cutters, normal, planView, RhinoDocument.ModelAbsoluteTolerance);
} (89.2 KB)


thanks very much