Grasshopper

algorithmic modeling for Rhino

Hi.
I have a brep. i make a list of its surfaces. I need to pick the second biggest, so i list their areas. Then i sort them, and list the one i wanted.
but what i need is to pick that surface for another operation. So i tried to use a function to compare the areas in the list to the area i want, but get always false boolean.
What i have wrong?
thank you everybody
Javier

Views: 1147

Attachments:

Replies to This Discussion

I have a feeling that this has something to do with the data tree structure matching. Have you looked at the tree structure of the values you are comparing? You can use the parameter viewer. Let us know what you find.
right!
one was string and other was double.
i just changed it and work perfectly.
thank you both!
Javier,

It could be a tolerance or rounding type error with the double integer type so that x is never exactly equal y (ever).

Try this expression: x ≈ y

Or use the Similarity component where you can specify a tolerance for comparison values.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service