computeTriangles
fun computeTriangles(vertices: FloatArray, offset: Int = 0, count: Int = vertices.size): ShortArrayList
Triangulates the given (convex or concave) simple polygon to a list of triangle vertices.
Return
triples of triangle indices in clockwise order. Note the returned array is reused for later calls to the same method.
Parameters
vertices
pairs describing vertices of the polygon, in either clockwise or counterclockwise order.