triangulate

fun triangulate(shape: Shape, distanceTolerance: Double = 0.5, fillRule: FillRule = FillRule.NONZERO_WINDING): List<Vector2>

Triangulates a Shape into a List of triangle corner positions.

Parameters

distanceTolerance

How refined should the triangular shape be, smaller values equate to higher precision.