createSegments

fun createSegments(alpha: Double): List<LineSegment>(source)

Creates an alpha shape

Return

A list of LineSegments representing the perimeter of the alpha shape.

Parameters

alpha

The alpha parameter from the mathematical definition of an alpha shape. If alpha is 0.0 the alpha shape consists only of the set of input points, yielding ShapeContour.EMPTY. As alpha goes to infinity, the alpha shape becomes equal to the convex hull of the input points.