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

Remove rotating calipers algorithm #920

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Conversation

urschrei
Copy link
Member

@urschrei urschrei commented Oct 11, 2022

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

The Polygon-Polygon distance rotating calipers algorithm for convex polygons has been a source of bugs for a while, and I've exhausted my ability to fix the latest one (#917), so, as its author, I'm proposing the algorithm's removal.

This PR currently makes one other small change: it removes the Polygon-Polygon intersection check as it's relatively expensive and our iterative NN algorithm performs the check anyway as part of the point-line distance check.

Copy link
Member

@michaelkirk michaelkirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sad to see this implementation go, but it's really important we have correct implementations.

I hope we can bring it back in the future, but I agree it makes sense to disable it for now.

@frewsxcv
Copy link
Member

Should we add a regression test after this is removed so we don't accidentally reintroduce the bug?

@urschrei urschrei force-pushed the fast_path_retirement branch from 2e61749 to 52ee481 Compare November 18, 2022 15:12
@urschrei urschrei force-pushed the fast_path_retirement branch from 09a9b66 to 8522a1c Compare November 18, 2022 15:31
@urschrei
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 18, 2022

Build succeeded:

@bors bors bot merged commit 8e6cd45 into georust:main Nov 18, 2022
@urschrei urschrei deleted the fast_path_retirement branch February 14, 2025 21:00
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

Successfully merging this pull request may close these issues.

3 participants