a follow up question... how do I wrap a list onto itself at a certain frequency?
i.e. I want the list {1;2;3;4;5;6;7;8;9}
to become {1,4,7; 2,6,8; 3,6,9} wrapped every 3rd item
Added by Joshua Jordan at 5:30pm on November 17, 2012
{4}-0;3
{5}-6;7
{6}-5;7
{7}-5;6
Here it can be shown that there are two subgraphs containing 0,1,2,3,4 and 5,6,7. How can I use spiderweb (either using scripting or the components) to give me this result when I have many more vertices??
Thanks,
Sam…
would like to group the paths based on their item count (n) values resulting in a tree which should look something like this:
{0;0} (3)
{0;1} (2)
{0;2} (2)
{0;3} (1)
in other words, all paths with 2 items are under one path, all with 6 items in another, and so on.
I feel that the pathmapper should be able to do this very easily but cannot figure out what the expression should be... I have tried searching the forum but have not had much luck!
Any ideas? Thanks a ton!…
the one-but-last list [4]. After running out of the n- items avalaible it should continue with the second item of list 0 and so on for all items on all the lists.
Intput, six lists of 30 items each
[0] (n=30)
[1] (n=30)
[2] (n=30)
[3] (n=30)
[4] (n=30)
[5] (n=30)
Output, 18 lists of 10 items each
[0],i=0;[5],i=4; [4],i=7;...
[0],i=1;[5],i=5; [4],i=8;...
...
[5],i=1;[4],i=5; [3],i=0;...
I thought perhaps the weave component or the relative tree item component but didn't manage to figure out how to compose the mask. I couldn't find much on how to use these. I guess it should wrap the lists, but not the items.
Any help would be greatly appreciated.…
Added by Thorsten Lang at 2:27am on January 24, 2011
ns :-)
The code is really simple but I´ll post it in case it´s useful for somebody in the future:
On3dPoint[] array = new On3dPoint[8];
// in this case, I fill the array manually :-S
array[0] = new On3dPoint(0, 0, 0);
array[1] = new On3dPoint(1, 0, 0);
array[2] = new On3dPoint(1, 1, 0);
array[3] = new On3dPoint(0, 1, 0);
array[4] = new On3dPoint(0, 0, 1);
array[5] = new On3dPoint(1, 0, 1);
array[6] = new On3dPoint(1, 1, 1);
array[7] = new On3dPoint(0, 1, 1);
OnBrep box = new OnBrep();
box = OnUtil.ON_BrepBox(array);
A = box;
Thanks!…
er of curves with variable number of divisions each, so i have something like this.
{0;0}
1 Point
2 Point
3 Point
4 Point
5 Point
6 Point
7 Point
{0;1}
1 Point
2 Point
3 Point
4 Point
5 Point
6 Point
7 Point
{0;2}
1 Point
2 Point
....... and keepts going
so what i want to do is to re-organize this list, making a new one with packages like all #1 items, all #2 items, and so on...
i know that i can do this with LIST ITEM but i have to use 8 list item components if i want 8 divisions in each curve, so then if divisions changes, add more components or remove.... that's not a really good way to do it.
is it any way to do it better?
…
g definition but in diva for grasshopper in material it just appear dusty_med and not metal_railings and metal_treads. How I should write the correct definition?
void brightfunc dusty_med4 dirt dirt.cal -s 101 .25
dusty_med metal metal_railings005 .7 .7 .7 .3 .2
dusty_med metal metal_treads005 .5 .5 .5 .3 .2…