Grasshopper

algorithmic modeling for Rhino

Hey

as a german saying goes: somtimes you can not see the forest because of all the trees.

A simple problem and I do not have a clue, whats wrong. I create a anaylyse tool. It shows me curves with a length longer than 75 mm.
I added a picture.

Does someone know why after "equals" i ahve onle true and false solutions?

Thanks

Johannes

Views: 1062

Attachments:

Replies to This Discussion

I think your problem is rounding issues. 75.000000000000001 and 74.9999999999999 do not equal 75.0. The solution to this is to use the approximately equal to that allows you to set a tolerance. (Its the icon with the wave equals sign on the toolbar.)
this works

thank you
A few things are wrong, I think.

1. You should not connect CRV to the A of equals. You should connect the L of Len to the A of equals.

2. You should not use equals. You should use greater than or >.

3. If I take a look at your picture, I believe you understand the true and false outputs of the equals component. You should indeed use a dispatch component to divide the curves in two groups. What don't you understand about the true and false outputs of the equals components?

edit; Why do you call your slider z-distance instead for example length or minimal length?
GH will accept the crv parameter into an input and assume you intended length
to 1. i did that
to 2. greater than does not work, gives a strange row of false and truth output
to 3. the length tool shows 1 curve with 150 and the rest of them 75mm long. the one output of the equal shows all false and the other all wrong. the length and the equal solution are not conform

to edit: no spezial reason

Thank you
Hello Danny Boyes, Wiet Mazairac,

finally it works. I tried some other operator functions. Similarity is the only one with the correct output.
The rouding issues seem to be the problem, even if i could not prouf it.

thank you

Johannes
Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service