algorithmic modeling for Rhino
Points are value types, the equality is comparing the actual numbers that make up the points, but it's likely they are not exactly the same.
The best approach to check if two floating point numbers are the same (a 3d point is 3 floating point numbers), is to measure if their difference is smaller than a tolerance value.
For example, check if the distance between the two points is smaller than 0.01. If it is, assume that they are the same point.
true...so simple, thanks!
Ps: yeah, it needs the Similarity component instead of Equality, and it works with a tolerance as low as 0.000001
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by