Skip to content
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

is_intersection_segment_segment_xy inconsistency for fringe case #1077

Open
tkmmark opened this issue Oct 1, 2022 · 0 comments
Open

is_intersection_segment_segment_xy inconsistency for fringe case #1077

tkmmark opened this issue Oct 1, 2022 · 0 comments

Comments

@tkmmark
Copy link

tkmmark commented Oct 1, 2022

(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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant