Grasshopper

generative modeling for Rhino

smaller than, larger than, component problem

I am trying to group list of my results (n) into following 4 groups:

10^(-4)≥n

(10^(-9)≤n) and (n>10^(-4))

(10^(-14)≤n) and (n>10^(-9))

(10^(-62)≤n) and (n>10^(-14))

For some reason, Grasshopper 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.

Views: 289

Replies to This Discussion

Here's a way without expressions. The problem with doing this using expressions is that they only output a single value. And it's a long way from there to making a new tree structure.

--

David Rutten

david@mcneel.com

Oh, and the final panel only shows the rounded values, but the real values are there in the file.

--

David Rutten

david@mcneel.com

God, I'm having trouble replying to this subject ^^

Ok, I was wondering if it is not just a definition problem :

10^(-4)≥n

(10^(-9)≤n) and (n>10^(-4))

(10^(-14)≤n) and (n>10^(-9))

(10^(-62)≤n) and (n>10^(-14))

Shouldn't this become :

10^(-4)≤n

(10^(-9)≤n) and (n<10^(-4))

(10^(-14)≤n) and (n<10^(-9))

(10^(-62)≤n) and (n<10^(-14))

In what file David?
I can not find those two components: Consecutive Domains, and Find Domain.

They are present in versions newly than grasshopper 0.8.0050?

@Rhydro: you are right!

Ok,I found out that these two components were introduced since 0.8.0064.

I installed the 0.8.0066.

This solution is not working for me, because I can not use this data further.

Or either I am doing something wrong. Can you take a look at it David?

Thank you.

Attachments:

by Alex

by Alex

by Alex

• View All