Sample code needed Rhinocommon function Brep.split and Brep.trim

Dear Friends,
Sample code needed Rhinocommon function Brep.split and Brep.trim.
I need to trim and split one brep by another…

Sample code will be very helpful.

breps or planes are fine.

I am bit confused…

plane.ExtendThroughBox… is also confusing to me
I am looking for c# dotnet code. VB dot net is also very useful.

Best regards
Taha

Hi Tahmina,

Can’t help you out with c# and vb example code. But until the cavalry arrives, for splitting Brep with plane, use Intersection.BrepPlane method.

For splitting a brep you can look at this post:

@menno gave some code to do it. In later posts it is explained how to filter your breps that you want to keep.

1 Like