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!
Tags:
Permalink Reply by Giulio Piacentino on June 12, 2012 at 8:46am Hi,
have a look at the Rhino.Geometry.Intersect.Intersection class.
It provides static methods for intersections and booleans of several geometry types.
Thanks,
- Giulio
_________________
giulio@mcneel.com
Permalink Reply by huaxiamengqing on June 12, 2012 at 10:59pm Can you give me an example
Permalink Reply by Giulio Piacentino on June 13, 2012 at 10:52am Hi,
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.
Thanks,
- Giulio
___________________
giulio@mcneel.com

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.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Permalink Reply by huaxiamengqing on July 6, 2012 at 7:56am 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.
© 2013 Created by Scott Davidson.
Powered by