generative modeling for Rhino
I want to write a commpont to trim two brep, just like triming two line. But I can find methodes about this in the class of brep. Can you give me some adivce.Thank you!
have a look at the Rhino.Geometry.Intersect.Intersection class.
It provides static methods for intersections and booleans of several geometry types.
Can you give me an example
something like this should do. You need to define a way to pick the correct result. In this case, I use a point, similarly as what happens when you pick the line to be trimmed.
Brep has a Split method on it that allows you to perform a Split operation. You then need to figure out which of the results is inside the trimming brep and discard that. I don't have any code that does this handy.
Gulio's code is just to the simple brep. I just want complex brep boolean,A way to trim What I want. See the Attachment. When the brep contains too much srfs and curves it's trouble to split it for triming or boolean.
Thank you david. and gulio.