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

Merge in changes from oceanful #3

Merged
merged 4 commits into from
Sep 4, 2021
Merged

Merge in changes from oceanful #3

merged 4 commits into from
Sep 4, 2021

Conversation

ctessum
Copy link
Owner

@ctessum ctessum commented Sep 4, 2021

Fixes issue akavel#9

oceanful and others added 4 commits October 9, 2020 16:11
…kavel#10)

Polygon.MakeValid() fulfills functionality similar to ST_MakeValid() from the postgis library, removing self-intersections and degenerate edges.

The implementation leverages the polyclip sweep-line algorithm, previously only used for binary clipping operations, and applies it to a new unary _MAKE_VALID operation, which constructs a new polygon from the sweeped edges of the original (thereby removing self-intersections) and removes coincident segments (thereby removing degenerate edges).
@ctessum ctessum merged commit 6c785af into master Sep 4, 2021
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.

2 participants