Grasshopper

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!

Views: 145

Reply to This

Replies to This Discussion

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

Can you give me an example

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

Attachments:

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

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.

Attachments:

RSS

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service