Grasshopper

algorithmic modeling for Rhino

Hi Everyone,

 

I am currently trying to put a list of curves into sub-divided lists of curves. The number of sub-groups are randomly generated, and the number of curves in each subgroup is varied (some could contain 1 curve only, some would contain multiple).

 

The reason for this is, all the curves in the same subgroup would be subjected to the same operation, different from other subgroups. Such as move or scale.

 

Does anyone have a clue to how I could achieve this? Does VB.net even support this? lists within a list?

 

Thanks all!!

Views: 404

Replies to This Discussion

maybe you can use DataTree,

 

like..

 

Dim crvData as new DataTree(of Curve)

 

for int i = 0 to 10

  Dim pth as new GH_Path(i)

  crvData.Add(yourCurve, pth)

next

 

then you can get the Curve Lists in the DataTree {0}, {1},,, {9}

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service