Function GenericMesh.triangulatePolygon

Triangulates a set of vertices and adds the created triangles to the mesh (ear clipping algorithm)

void triangulatePolygon (
  in const(uint[]) polygon
);