Grasshopper

algorithmic modeling for Rhino

    I'm having a bit of trouble figuring out how I should handle "trees" coming  into the VB component. I did a little test script to get the rank, and the Ubounds of the incoming list and array. (see attached) The rank is always 1, when it should 2, since the list of list is really a 2 dimensional array. (or am I wrong)

    Also, the ubounds returns a list of a list of the ubounds, even when I set the ubound to an Int32. ( This might have to do with the fact that vb is type casting the int32 as a list of a list automatically.)

Could someone shed some light on the differences between trees, trees list of list, and arrays, and what the best way to deal with all these without getting a headache?

Basically I wanted to get the row and columns of the incomming list or the ubounds of the 1st and 2nd dimension of the array. It would be great if I could do this in grassshopper, but there doesn't seem to be any index or ubounds components for trees as there are for lists. . . . It seems that the trees are only good for outputting into grasshopper since it seems to lack some of the methods and properties of the arrays and lists.

Views: 192

Attachments:

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service