Grasshopper

algorithmic modeling for Rhino

Hello,

 

How do you trim a cube with a surface in vb.

Thanks to help!

Views: 424

Replies to This Discussion

I actually don't know. It's easy to perform a solid boolean operation, but cutting holes is harder. We don't have a top-level function for it. I'll ask in Seattle.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

we can do a solid boolean operation with a cube and a surface?

Yes, the Rhino.Geometry.Brep type has a set of static Solid Boolean functions. You'll need to make sure both your surface and your cube are converted to Breps first, and then you can call:

 

Rhino.Geometry.Brep.CreateBooleanDifference(....

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

perfect!
Sorry, but it's not working
Attachments:

That is because the CreateBooleanDifference function works on collections of Breps. You're only supplying it a single Brep.

 

You'll need to create some form of collection, either an array or a List(Of Brep) would be easiest.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service