Skip to content

Commit

Permalink
Improve OffsetCurve behaviour and add Joined mode (#956)
Browse files Browse the repository at this point in the history
* Improve OffsetCurve functionality
* Add repeated point fix

Signed-off-by: Martin Davis <[email protected]>
  • Loading branch information
dr-jts authored Feb 24, 2023
1 parent b16e47c commit 41c7d92
Show file tree
Hide file tree
Showing 5 changed files with 532 additions and 174 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public static Geometry offsetCurveWithParams(Geometry geom,
return OffsetCurve.getCurve(geom, distance, quadrantSegments, joinStyle, mitreLimit);
}

public static Geometry offsetCurveJoined(Geometry geom, double distance)
{
return OffsetCurve.getCurveJoined(geom, distance);
}

public static Geometry offsetCurveBoth(Geometry geom, double distance)
{
Geometry curve1 = OffsetCurve.getCurve(geom, distance);
Expand Down
Loading

0 comments on commit 41c7d92

Please sign in to comment.