locationtech / jts

The JTS Topology Suite is a Java library for creating and manipulating vector geometry.
Other
1.94k stars 442 forks source link

Fix OffsetCurve to use a minimum QuadrantSegs value #981

Closed dr-jts closed 1 year ago

dr-jts commented 1 year ago

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 https://github.com/libgeos/geos/pull/917