<h3>[method:Array triangulate]( data, holeIndices, dim )</h3>
<p>
data -- A flat array of vertice coordinates.<br/><br/>
holeIndices -- An array of hole indices if any.<br/><br/>
dim -- The number of coordinates per vertice in the input array.<br/><br/>
data -- A flat array of vertex coordinates.<br/>
holeIndices -- An array of hole indices if any.<br/>
dim -- The number of coordinates per vertex in the input array.<br/><br/>
Triangulates the given shape definition by returning an array of triangles. A triangle is defined by three consecutive integers representing vertex indices.
<h3>[method:Array triangulate]( data, holeIndices, dim )</h3>
<p>
data -- 一个顶点坐标的平面数组。<br/><br/>
holeIndices -- 空洞索引的数组(如果有的话)。<br/><br/>
data -- 一个顶点坐标的平面数组。<br/>
holeIndices -- 空洞索引的数组(如果有的话)。<br/>
dim -- 输入数组中每个顶点的坐标数。<br/><br/>
Triangulates the given shape definition by returning an array of triangles. A triangle is defined by three consecutive integers representing vertex indices.