createShape

fun createShape(alpha: Double): Shape(source)

Creates an alpha shape, possibly with holes

Return

A Shape representing the alpha shape, or Shape.EMPTY if the alpha shape cannot be represented by a Shape (e.g. because it consists of multiple disconnected components).

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 Shape.EMPTY. As alpha goes to infinity, the alpha shape becomes equal to the convex hull of the input points.


fun createShape(): Shape(source)

Returns a Shape representing an alpha shape; the smallest alpha is chosen such that the corresponding alpha shape contains all input points and can be represented by a Shape (in particular, it consists of one component).