Grasshopper

algorithmic modeling for Rhino

Hello,

 

I am trying my first things in GH vb and have some issues with boolean operations.

 

No matter which typ of boolean I try I get an error message about 'overload resolution failed because no accessible "boolean" accepts this number of arguments'.

 

I am trying to get it to work with a simple code, but as a newbie I have no idea whats going wrong. both items are closed valid brep's.

 

Private Sub RunScript(ByVal vol As OnBrep, ByVal srf As OnBrep, ByRef A As Object)

    Dim blist As New list(Of onbrep)

    blist.add(vol)
    blist.add(srf)


    A = rhutil.RhinoBooleanUnion(blist)

 

 End Sub

 

Boolean split, difference neither works with me.

 

Could somebody give me some help with this.

 

Thanks!

 

Alex

Views: 220

Replies to This Discussion

Hi Alex,

 

you're using the old (legacy) SDK, fewer and fewer people know how to help you with this. I highly recommend you use RhinoCommon. In RhinoCommon the code would look like this:

 

A = Brep.CreateBooleanUnion(New Brep() {vol, srf}, 0.01)

 

--

David Rutten

david@mcneel.com

Barcelona, Spain

Great,

 

That makes sence, I have a lot to learn :)

 

Thanks.

 

Alex

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service