algorithmic modeling for Rhino
Hi Azan,
you're going to have to post some files so people can reproduce the problem.
Note that equality of floating point values is a finicky business as even the tiniest difference will result in inequality. I.e. 4.62938576298003 is not equal to 4.62938576298005, even though both may be displayed as 4.629386 in the Grasshopper interface.
If you want to test floating point numbers for equality, you almost always have to compute the absolute difference and compare that to a tolerance that makes sense for you. So instead of 'A = B', you need something along the lines of 'Abs(A-B) < 1e-8'
Points and Vectors suffer from the same problem because they consist of 3 floating points values each.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
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