Function GeometrySingleton.triangulatePolygon

Triangulates the polygon specified by the points in polygon. Returns a PoolIntArray where each triangle consists of three consecutive point indices into polygon (i.e. the returned array will have n * 3 elements, with n being the number of found triangles). If the triangulation did not succeed, an empty PoolIntArray is returned.

PoolArray!(int) triangulatePolygon (
  const(PoolArray!(godot.core.vector2.Vector2)) polygon
) nothrow @nogc;