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

Fix OffsetCurve to use a minimum QuadrantSegs value #981

Merged
merged 2 commits into from
May 26, 2023

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented May 25, 2023

Enforce a minimum value for the Offset Curve Quadrant Segments (a value of 8 works well). This fixes an issue with offset curve artifacts appearing when very small QuadSeg values are used. This is due to the need to have a relatively circular end cap in the associated buffer polygon.

At some future point it might be possible to enforce the minimum QS value for just the end caps, since using a small at joins should not cause a problem.

Fixes #980
See also libgeos/geos#917

@dr-jts dr-jts merged commit 68c892b into locationtech:master May 26, 2023
2 checks passed
@dr-jts dr-jts deleted the fix-offset-curve-quad-segs branch May 26, 2023 00:13
@dr-jts dr-jts changed the title Enforce OffsetCurve to use a minimum QuadrantSegs value Fix OffsetCurve to use a minimum QuadrantSegs value May 26, 2023
pramsey added a commit to pramsey/geos that referenced this pull request May 26, 2023
pramsey added a commit to libgeos/geos that referenced this pull request May 29, 2023
pramsey added a commit to libgeos/geos that referenced this pull request May 29, 2023
pramsey added a commit to libgeos/geos that referenced this pull request May 29, 2023
pramsey added a commit to libgeos/geos that referenced this pull request May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OffsetCurve has artifacts when Quadrant Segments is small
1 participant