java.lang.Object
org.jhotdraw8.geom.contour.ContourBuilder
ContourBuilder.
References:
This code has been derived from CavalierContours.
- CavalierContours. Copyright (c) 2019 Jedidiah Buck McCready.
MIT License. - github.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRawOffsetPline(PlinePath pline, double offset) Creates the raw offset polyline.parallelOffset(PlinePath pline, double offset) Creates the parallel offset polylines to the polyline given.stitchOffsetSlicesTogether(List<OpenPolylineSlice> slices, boolean closedPolyline, int origMaxIndex) stitchOffsetSlicesTogether(List<OpenPolylineSlice> slices, boolean closedPolyline, int origMaxIndex, double joinThreshold)
-
Constructor Details
-
ContourBuilder
public ContourBuilder()
-
-
Method Details
-
createRawOffsetPline
Creates the raw offset polyline. -
parallelOffset
Creates the parallel offset polylines to the polyline given.- Parameters:
pline- input polylineoffset- offset- Returns:
- offset polyline
-
stitchOffsetSlicesTogether
protected List<PlinePath> stitchOffsetSlicesTogether(List<OpenPolylineSlice> slices, boolean closedPolyline, int origMaxIndex) -
stitchOffsetSlicesTogether
protected List<PlinePath> stitchOffsetSlicesTogether(List<OpenPolylineSlice> slices, boolean closedPolyline, int origMaxIndex, double joinThreshold)
-