Package-level declarations

Functions

Link copied to clipboard
fun ShapeContour.arcCorners(lengths: List<Double>, expands: List<Double> = listOf(0.0), scales: List<Double> = listOf(1.0), largeArcs: List<Boolean> = mutableListOf(false), angleThreshold: Double = 180.0): ShapeContour
Link copied to clipboard
fun ShapeContour.bevelCorners(length: Double, angleThreshold: Double = 180.0): ShapeContour
Link copied to clipboard
fun ShapeContour.bulgeSegments(distortion: Double): ShapeContour
fun ShapeContour.bulgeSegments(distortion: (index: Int, segment: Segment2D) -> Double): ShapeContour
fun ShapeContour.bulgeSegments(distortion: List<Double>): ShapeContour
Link copied to clipboard
fun ShapeContour.chamferCorners(lengths: (index: Int, left: Segment2D, right: Segment2D) -> Double, expands: (index: Int, left: Segment2D, right: Segment2D) -> Double = { _, _, _ -> 0.0 }, clip: Boolean = true, angleThreshold: Double = 180.0, chamfer: ContourBuilder.(p1: Vector2, p2: Vector2, p3: Vector2) -> Unit): ShapeContour

Chamfers corners between linear segments

Link copied to clipboard
fun List<Vector2>.filletCorners(radius: Double, closed: Boolean, reverseCurves: Boolean = true, polarity: YPolarity = YPolarity.CW_NEGATIVE_Y): ShapeContour

Converts this polyline into a contour in which the corners are replaced by circular arcs of radius that keep the tangent direction continuous along the whole contour.

Link copied to clipboard
fun ShapeContour.roundCorners(length: Double, angleThreshold: Double = 180.0): ShapeContour