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
Tags:
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
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by