chamferCorners
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(source)
Chamfers corners between linear segments
Parameters
lengths
a function that determines the chamfer length based on segment index and adjacent segments
expands
a function that determines the expansion distance (default: 0.0)
clip
whether to clip the chamfer to segment bounds (default: true)
angleThreshold
the maximum (smallest) angle between linear segments (unused)
chamfer
the chamfer function to apply