ConstrainedDelaunayTriangulation

constructor(shape: Shape, interiorPoints: List<Vector2> = emptyList())(source)

Parameters

shape

a Shape whose contours are closed and consist solely of linear segments (see Shape.linear).

interiorPoints

additional, unconstrained points to include in the triangulation, for example to refine/densify the mesh. Every point must lie inside shape.