You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Path.intersects_path sometimes returns incorrect values #20328
The Path.intersects_path function sometimes returns True when it should return False. I've noticed this only when some vertices in the path deviate slightly from round numbers (as sometimes arises from floating point imprecision).
Clarification: I was mistaken in thinking the bug had to do with the 0.999... vertex. On the contrary, the bug arises with completely round integers. For example, these two disjoint (and very far apart) horizontal segments:
Activity
jklymak commentedon May 28, 2021
This looks like #15842 but that was supposedly fixed?
nwatters01 commentedon May 28, 2021
Clarification: I was mistaken in thinking the bug had to do with the 0.999... vertex. On the contrary, the bug arises with completely round integers. For example, these two disjoint (and very far apart) horizontal segments:
Returns
True. This is a much better minimal example than the one I initially posted.jklymak commentedon May 28, 2021
Ok and if you coerce to float it is fine?
nwatters01 commentedon May 28, 2021
No, coercing to float is not fine either it seems.
Also returns True (both with float32 and float64 types).