Class ContourBuilder

java.lang.Object
org.jhotdraw8.geom.contour.ContourBuilder

public class ContourBuilder extends Object
ContourBuilder.

References:

This code has been derived from CavalierContours.

CavalierContours. Copyright (c) 2019 Jedidiah Buck McCready.
MIT License.
github.com
  • Constructor Details

    • ContourBuilder

      public ContourBuilder()
  • Method Details

    • createRawOffsetPline

      public PlinePath createRawOffsetPline(PlinePath pline, double offset)
      Creates the raw offset polyline.
    • parallelOffset

      public List<PlinePath> parallelOffset(PlinePath pline, double offset)
      Creates the parallel offset polylines to the polyline given.
      Parameters:
      pline - input polyline
      offset - 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)