nts which are located on different surfaces of these boxes. Now I want to divide the points in such a way that I have all the points located on each different surface in a branch of a list.
So if I have a tree for the points with 10 branches (for 10 different situations) and 4 different surfaces the points can be located on. I would like to have one tree as a result where I have the following struture:
{Situation 1, Surface 1}
{Situation 1, Surface 2}
{Situation 1, Surface 3}
{Situation 1, Surface 4}
{Situation 2, Surface 1}
...
{Situation 10, Surface 4}
My goal is to make individual surfaces based on the point clusters on each surface.
For now I tried the Point in Curves function, but somehow I still get points on different surfaces even though I should just get them for one of the surfaces.
Kind regards,
Florian…
E.g.:
0 2 (A) = 2
1 2+4 (A+B) = 6 (AB)
2 6+4 (AB+C) = 10 (ABC)
3 10+6 (ABC+D) = 16 (ABCD)
etc.
Into a new list numbers:
{2,6,10,16, etc} that adding the previous number with the next number.
Thanks,
daniel
…
1
condition: largest number<max length
then the packing would look something like this:
1 |4 |5 |7 |2
9 |6 |5 |3 |2
|5
|1
sums|10|10|10|10|10 => 100% efficiency
And the algorithm is:
1.Place first number(x=1)
2.Calculate the rest(R) in this row(10-1=9)
3.Search for closest x <= than R
3.1 If x=R -> place that number -> end of cycle
3.2 If x<=R -> place that number -> return to 2.
3.3 If x=null -> end of cycle
Something like this.
Can this be classified as brute force?
…
Added by Artyom Maxim at 11:08am on March 19, 2013
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.…