fromContours

fun ShapeContour.Companion.fromContours(contours: List<ShapeContour>, closed: Boolean, connectEpsilon: Double = 1.0E-6): ShapeContour(source)

Creates a new ShapeContour by combining multiple ShapeContour instances.

Return

a new ShapeContour combining the input contours

Parameters

contours

a list of ShapeContour to be combined; empty contours are removed

closed

a boolean indicating whether the resulting ShapeContour should be closed

connectEpsilon

the tolerance for connecting contours, default is 1E-6