algorithmic modeling for Rhino
Hey there,
I'm working on splitting up a surface and then assigning surfaces to groups depending on their areas. In my case I have a list of 7 surfaces which then gets passed to BRep area and also returns a list of 7 areas.
I want to pass them into a loop which when the area is matched to an area limit, the 'Face' is then passed out into the correct group. I know there must be a way but I'm new to vbScript and I'm trying to learn off discussions here!
Hope you can help,
David
My script:
RunScript(ByVal Area As Integer, ByVal Face As OnBrep, ByVal BldgLimit As Integer, ByVal ResLimit As Integer, ByVal OffLimit As Integer, ByVal listLength As Integer, ByRef Open As Object, ByRef Resi As Object, ByRef Office As Object, ByRef Retail As Object)
For i As int32=0 To (listLength.count - 1)
If Area(i) < Bldg Limit Then
Face(i) = Open
Else If Area(i) > BldgLimit And < ResLimit Then
Face(i) = Resi
Else If Area(i) > ResLimit And < OffLimit
Face(i) = Office
Else If Area(i) > OffLimit Then
Face(i) = Retail
End If
Next
Tags:
Welcome to
Grasshopper
© 2025 Created by Scott Davidson.
Powered by