-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different values after using == operator #108
Comments
I can't create the above running your above script on a recent build of scikit-geometry and using CGAL 5.6 (on Windows):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm doing the following:
And the first
print
statement printsTrue
as one would expect, given that the skeletons were calculated from the exact same polygon. However, after the loop where points get compared to each other the followingprint
statement printsFalse
, though one would expect that the comparison has no effect on the values.The same happens if instead of comparing the points themselves the values using
.x()
and.y()
get compared. It does not happen, however, if the floating point values get compared likefloat(h.vertex.point.x()) == float(h.vertex.point.x())
.When I print the values like this
I get the following:
I can't make any sense of the (apparently?) changed values but it only seems to affect the vertices where
time > 0
but I'm still wondering why the values are different just from a simple comparison.My version of scikit-geometry is 0.1.2 (which is the version available on Anaconda) on Python 3.9.12.
The text was updated successfully, but these errors were encountered: