algorithmic modeling for Rhino
From below list, where First number of first Row (0) is X coordinate and next number of same row (0) is No of times X coordinate is repeating (here 3 times).
Then next rows from 1 to 3 (3 steps) are Y, Z coordinate (e.g. y=0,z=49.165 then y=1.331, z=49.213 etc)...like that it is repeating...I want to arrange this list in X, Y, Z coordinate list.
Would it be possible for anybody to help me?
Wow, fantastic, this is what i am searching since many days, i thought there is only way of doing scripting.
Thanks a lot.
Wow, same result as above fantastic,
Thanks a lot.
As before, this is a terribly fragile data format. I didn't bother partitioning the point sets into branches.
Sorry for troubling in last post....this is what i expecting.
you all are great people.
thanks a lot
Note that both Filippos' and Hyungsoo's solutions depend on visual inspection of the data to explicitly identify the lines containing the X coordinates and repeat counts. They are likely to fail when the data changes.
The Anemone loop in my code doesn't do that, it follows your interpretation "rules" instead, which are cumbersome to manage using standard GH components. Scripting (Python) would be easier. And perhaps there are better ways to write the Anemone loop...? Still, the format is fragile without a way to separate the "X,reps" lines from the "Y,Z" lines of data.
ok noted, thank you sir, i will check your code for other list too, if i found anything different i will come back.