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

length

the length of the chamfer

angleThreshold

the maximum (smallest) angle between between linear segments

chamfer

the chamfer function to apply