Triangulator.Triangulate
Static Method in Triangulator
Declaration
public static int[] Triangulate(Vector2[] points)
Description
Splits a polygon into triangles. Supports concave polygons but not polygons with holes.
Parameters
points | The points that form a polygon. |
Returns
int[] | The indices of the triangles. |