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 returns True when it shouldn't #15842
Path.intersects_path returns True for the following paths, when they don't intersect at all (as shown by Shapely). This is a simplified outline_path from Cartopy. The trigger seems to be the duplicate point at the end of outline_path; if removed, it works as expected.
When checking if the two line segments intersect need to check if any of those are actually points.
If that is the case, need to check if the line contains the point.
Activity
TarasKuzyo commentedon Dec 6, 2019
@QuLogic
it seems a zero-length segment intersects with any other segment.
Will push a fix be Dec 10.
TarasKuzyo commentedon Dec 10, 2019
When checking if the two line segments intersect need to check if any of those are actually points.
If that is the case, need to check if the line contains the point.
Workaround Matplotlib Path.intersects_path bug.
Workaround Matplotlib Path.intersects_path bug.
Workaround Matplotlib Path.intersects_path bug.
Workaround Matplotlib Path.intersects_path bug.
Workaround Matplotlib Path.intersects_path bug.
tacaswell commentedon Jan 17, 2020
This is broken on 3.2 and master as well.
FIX: when iterating through segments skip 0 length segments
FIX: 0 length segment intersect
FIX: 0 length segment intersect
Kojoley commentedon Jan 20, 2020
Probably the same cause:
FIX: when iterating through segments skip 0 length segments
FIX: 0 length segment intersect
Workaround Matplotlib Path.intersects_path bug.