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!…
7 -18.2
8 5.02
9 12.4
10 18.1
11 7.01
12 5.11
13 2.35
this data is waveform data.
i want to pick out only climax(for example in upper data, number 1 and 10) from this data.
i have this problem...that is, i do not know to do what.
i think my English is strange...so you are difficult to understanding my question.…
e a list of coordinates which I need to sort in groups as per a series of numbers in another list. Both are txt files which I'm reading to bring a series of points in but those points are generated with a corresponding index.
Of course the lists are not sorted in any way, but the numbers are corresponding so it looks like a series of 9, 6, 7, 2, 8, 0, 9, 5, 6, 4, 2, 3, 8, 5, 5, 6, 9, 4 in one file( and series of (X, Y, Z) coordinates in the other.
The question is how can I make it to sort the list and then split it per index... if it is possible... or should I just do this in excel and bring clean lists in?
My idea, if it works, is use the series of points to generate paths and work with them.
I'll attach the lists just if it helps making a clear idea.
Any advice will be very welcome.…
{8} become {1) etc
(see image attached)
I've played around with series components and feeding the data into a tree branch in stages (0-4 5-9 etc), however the amount of branches i need to merge (5 in this case) is a variable that plan on changing in the future so I want a more sophisticated solution than manually copying groups of series components and feeding them into separate tree branches.Thanks in advance for any help…
opper is all these values "recognizing" as similar/same.
I got list of results (n) with following values:
0. -3.2584e-9 1. -4.4992e-9 2. -6.7220e-9 3. -4.5154e-9 4. -4.3325e-9 5. -2.2496e-9 6. -2.2385e-9 7. -6.7525e-9 8. -4.5154e-9
Even though most of these values (maybe all of them) "go" into the second group:
(10^(-9)≤n) and (n>10^(-4))
Grasshopper recognizes all of them as members of the first group:
10^(-4)≥n
I am aware that this kind of very small values are unusual, and maybe Grasshopper is not made for it. But is there any way this can be done?
Take a look:
Thank you.…
have 2 different lengths.Ex: 0, 2, 4 and 6 gets one length, while section 1, 3, 5 and 7 gets anotherAnyone here that has a good solution for this?
Sincerely,
Brage…
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?
…
Points array to X-Y
2)Delete some points from array randamnly.
3)Move position of points array randamnly
4)Connect those poits array to Voronoi component
Simulate frpm 1) to 3) until favorite Voronoi created.
5)Get some poitns from Voronoi lines
6)Create periodic curves from those points
7)Bake into Rhino and modify shape as you want
8)MapSurf to base surface then split…
he same order of the list. for example i have a list with 4 different lenght of curve like this:
0= 10
1= 12
2= 8 (minimum)
3= 17 (maximum)
and wont to make a ranking that the longest curve gets the value 4 and the smallest the value 1, like this
0= 2
1= 3
2= 1
3= 4
i tried the sort list function, but it dosn`t work
can anybody help me!
thx a lot…