generative modeling for Rhino
Hi,
I'm having issues with a seemingly simple example where I would like to subtract some objects in a list from a single bigger ball.
This is a simplified version of what I am actually trying to do. In my original example I have used the GH Solid Difference component.
However, the objects in my list are overlapping so I would need to subtract each one of the remaining brep until everything is taken away.
Could you please help me fixing my little code?
Thanks!
H
Tags:
Permalink Reply by Giulio Piacentino on March 21, 2012 at 2:50pm Hi H,
this is the code that you can use in this case:
Sub RunScript(Pos As Brep, NegList As List(Of Brep), ByRef A As Object)
Dim PositiveArray As Brep() = { Pos }
A = Brep.CreateBooleanDifference(PositiveArray, NegList, 0.01)
End Sub
List(Of Smth) and array of something, Smth(), are both IEnumerable(Of Smth), so you can write the code above.
I hope this helps,
- Giulio
________________
giulio@mcneel.com
Added by David Stasiuk 8 Comments 21 Likes
Added by stefano 5 Comments 7 Likes
© 2013 Created by Scott Davidson.
Powered by