Grasshopper

algorithmic modeling for Rhino

rearrange list to extract isocurves in both directions

hi all, I'm interested in extracting curves in both u/v direction for a surface I have, and I've tried out many approaches for what I think should have a simple solution.

getting the curves from the (u) direction is easy enough, and I want to extract the curves frmo the (v) direction and have both sets come from the same point grid.

I want to rearrange the list structure of the SDivide component such that

1(0,1,2,3,4...)

2(0,1,2,3,4...)

3(0,1,2,3,4...)

becomes

1(0,0,0,0...)

2(1,1,1,1...)

3(2,2,2,2...)

I have been using the List Item component to achieve basically the same effect but repeating it over and over for 27 lists gets really tedious. Thanks if anyone can point me in the right direction

Views: 617

Replies to This Discussion

A1 A2 A3 A4 A5 A6...
B1 B2 B3 B4 B5 B6...
C1 C2 C3 C4 C5 C6...
D1 D2 D3 D4 D5 D6...

becomes

A1 B1 C1 D1 E1 F1...
A2 B2 C2 D2 E2 F2...
A3 B3 C3 D3 E3 F3...
A4 B4 C4 D4 E4 F4...

maybe this is a better way to represent the list rearrangement. It would also be great for this to accommodate variable list lengths because the u/v gridlines on the original surface are tbd 

Plug p from surface divide into a flip matrix component. Plug flip matrix to curve.

wow what a handy component. thanks!

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service