Package-level declarations
Functions
Link copied to clipboard
fun ShapeContour.segmentByCurvature(maxCurvature: Double = 0.05, samples: Int = 500, smoothingWindow: Int = 3, minLengthFraction: Double = 0.01): List<ShapeContour>
Segments this ShapeContour into sub-contours whose curvature stays below maxCurvature. High-curvature stretches are dropped as "seams" between segments; only the low-curvature stretches are returned.