sampleLinear

fun sampleLinear(distanceTolerance: Double = 0.5): ShapeContour(source)

Adaptively samples the contour into a new ShapeContour of linear Segment2Ds while still approximating the original contour.

Return

A ShapeContour composed of linear Segment2Ds

Parameters

distanceTolerance

Controls the precision of the approximation, higher values result in lower accuracy.