Grasshopper

algorithmic modeling for Rhino

Hi everyone, I'm having a problem with the equality component that I can't quite figure out.

I have a list of points, and I want to keep just the ones that are on a curve. So what I'm doing is using Curve CP to get the distance to the curve, and then running that distance through an equals component and then culling the list of points using the Equality pattern.

The problem I have, as you can see on this screenshot, is that although the distance is 0 for some points (for instance, you can see it in the  59, 60, 75 and 76) equals returns false for those points.

I'm sure I'm making some silly mistake, but I just can't figure it out!

Thanks a lot! 

Views: 395

Attachments:

Replies to This Discussion

Did you try instead, using < some extremely small number, say .0001?

Hello

check this post

you can use similarity component

best

alex

Ok, thanks to both of you! I'm using < and it's working correctly, I couldn't make it work with similarity

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service