compas-dev / compas-dev/compas
is_intersection_segment_segment_xy inconsistency for fringe case
Open
- Dominant language
- Python
- Stars
- 386
- Forks
- 122
- Avg merge
- 11d 46m
- Merged PRs (30d)
- 1
Description
```
(a, b) = [[0, 0, 0], [1, 0, 0]]
(c, d) = [[1,-1, 0], [1, 1, 0]]
from compas.geometry import is_intersection_segment_segment_xy
is_intersection_segment_segment_xy((a, b), (c, d))
# prints True
is_intersection_segment_segment_xy((a, b), (d, c))
# prints False
```
cause:
is_ccw_xy(a, c, d) != is_ccw_xy(b, c, d)
Contributor guide
Assessment
This issue has not been assessed yet.