API reference
API reference
Select your platform
No SDKs available
No versions available

Triangulator Class

Provides methods for triangulating polygons and clipping polygons with holes.

Static Member Functions

Triangulates a set of points using the ear clipping algorithm.
Parameters
vertices
The list of vertices that define the outline of a polygon to triangulate.
holes
The list of internal polygon holes that should not be triangulated.
outVertices
The list of vertices created from the triangulation.
outIndices
The list of indices created from the triangulation.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon