Static Methods
.triangulate( data : Array.<number>, holeIndices : Array.<number>, dim : number ) : Array.<number>
Triangulates the given shape definition by returning an array of triangles.
| data |
An array with 2D points. |
| holeIndices |
An array with indices defining holes. |
| dim |
The number of coordinates per vertex in the input array. Default is |
- Returns: An array representing the triangulated faces. Each face is defined by three consecutive numbers representing vertex indices.