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

AssertionError assert(event.in_sweep == False) #28

Open
flazouh opened this issue Sep 23, 2022 · 0 comments
Open

AssertionError assert(event.in_sweep == False) #28

flazouh opened this issue Sep 23, 2022 · 0 comments

Comments

@flazouh
Copy link

flazouh commented Sep 23, 2022

Does anyone have a clue why these lines causes this assertion to not pass ?

lines = [((-9708, 1440), (10288, 1083)), ((-9700, 2429), (10286, 3158)), ((-8530, 2364), (11446, 3303)), ((1965, -8764), (1754, 11234)), ((288, -8534), (285, 12338)), ((1726, -7542), (1959, 12456))]
File "/Users/alex/PycharmProjects/fast_api_chess/poly_point_isect.py", line 616, in isect_segments
    return isect_segments_impl(segments, include_segments=False, validate=validate)
  File "/Users/alex/PycharmProjects/fast_api_chess/poly_point_isect.py", line 598, in isect_segments_impl
    sweep_line.handle(p, events_current)
  File "/Users/alex/PycharmProjects/fast_api_chess/poly_point_isect.py", line 391, in handle
    self.handle_event(e)
  File "/Users/alex/PycharmProjects/fast_api_chess/poly_point_isect.py", line 431, in handle_event
    if self.remove(e):
  File "/Users/alex/PycharmProjects/fast_api_chess/poly_point_isect.py", line 353, in remove
    assert(event.in_sweep == False)
AssertionError

Thanks in advance!

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