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…
etting when I merge the three trees, but what I would like to get is:
essentially a tree with 27 branches, each with a single list of either 11 or 21 points.
{0} (N=11)
{1} (N=11)
...
{10} (N=21)
{11} (N=21)
...
{17} (N=11)
{18) (N=11)
{27} (N=11)
Any help would be greatly appreciated.
All the best,
Matt
…
Added by Matt Schmid at 3:06pm on December 4, 2010
a specific domain, for example:
0.) 0 to 1 -----> 11 random values from 0 to 1 (0.245,0.678,0.36,0.78,.28,0.18........)
1.) 1 to 2 -----> 11 random values from 1 to 2 (1.26,1.36,1.01,1.68,1.26,1.96.........)
3.) 2 to 3 -----> 11 random values from 2 to 3 (2.96,2.45,2.78,2.56,2.98,2.10..........)
4.) 3 to 4 and so on where I have a data set containing 11 paths with 11 values and the values fall within the specific domain.
Like my post above I have the correct path but I need to feed it the correct seed to get different values for each number. I tried grafting a series similar to the last post but it scrambles my data. Thanks so much for the help!
…
- 100.
After that, I want to separate it into 5 different lists in spesific thickness.
in this case of 0-100 so it would be :
1. if the distance 0 - 20 then the thickness is 5
2. if the distance 21 - 40 then the thickness is 10
3. if the distance 41 - 60 then the thickness is 15
4. if the distance 61 - 80 then the thickness is 20
5. if the distance 81 - 100 then the thickness is 25
But, the problem is the list of distance isn't static between 0-100. It could be 5 - 250 / 3.5-175/etc.....
Could you help me how to make the expression?? Is this possible if I make one expression?
thank you.
Z.
nb: distance and thickness hasn't mathematical relation.…
Added by ZAQI FATHIS at 8:43am on November 27, 2013
ll these 12500 points.
Group 1 would represent the point located at 0, 5, 10, 15, 20 etc.
Group 2 - 1, 6, 11, 16, 21 etc.
Group 3 - 2, 7, 12, 17, 22 etc.
Group 4 - 3, 8, 13, 18, 23 etc.
Group 5 - 4, 9, 14, 19, 24 etc.
I can create the pattern but the selection of points are all the points in row 0 and then all the points in row 5 and so on.
I would like the selection of points to start at the bottom left, and sequentially continue to the right and then continue on the 2nd row (left to right & bottom to top). i am hoping the pattern i am trying to achieve is more understood with the quick screen capture I uploaded.
the end goal is to be able to select all the points in the grid that are in each pattern.
Thanks in advance for any guidance with this. …
Added by Alyne Rankin at 6:53am on October 11, 2017