The best way is to use a C# or a VB component to transpose these
lists. I think in C# you can use transpose directly. You can ask this
on the VB/C# forum on our new website, www.grasshopper3d.com
- Scott
On May 27, 3:56 am, Tonsgaard wrote:
> Being a long time user of Generative Components trying to use
> grasshopper i miss the "transpose" command.
> I have a point list like this:
>
> 0, 1, 2, 3, 4, 5
> 0, 1, 2, 3, 4, 5
> 0, 1, 2, 3, 4, 5
> 0, 1, 2, 3, 4, 5
> 0, 1, 2, 3, 4, 5
>
> and a want to transpose dimensions to:
>
> 1, 1, 1, 1, 1
> 2, 2, 2, 2, 2
> 3, 3, 3, 3, 3
> 4, 4, 4, 4, 4
> 5, 5, 5, 5, 5
>
> Surely I am not the first in need of this...
> how would i go about and do this...? I suppose its quite easy in VB
> script, but being used to GC's C# like language, I kinda dont know how
> to do this...
>
> thanks...
>
> Tonsgaard…
How are you defining lowest X/Y and highest X/Y? For example, if I have three 2D Points:
{-5, 10}
{-3, 0}
{4, -10}
Which of them qualifies for the highest and which the lowest?
Added by David Stasiuk at 11:36am on February 13, 2016
until it gets to the end of the curve: 2, 10, 5, 2, 10, 5, 2, 10 , 5......until it reaches 130. (the last segment will be an odd length of course)
I manage to get the first part following other examples on the forum. the definition only does the first sequence of 2, 10, 5. I tried adding the sequence function to repeat it and then got a bit lost!
Many thanks in advance!…