I'm struggling for a long time figuring out how to remap the index of a tree structure, I know grasshopper doesn't thinks with array structure but in tree structure, I still hasn't figured out the difference between two. For example if I had a 4 times 4 array.
array[0-3][0-3]
I used to write php, In order to switch the index, what I would do is:
for ( $x = 0; $x < 4; $x++) {
for ( $y = 0; $y < 4; $y++) {
newarray[x][y]=array[y][x];
}
}
I'm wondering how would I do this in grasshopper. Either by VB or by components.
I'm working on a array of lines, I want to loft them in both directions, attached is the screenshot.
Thanks a lot
Tags:
- Attachments:
-