Buckets:

imerfanrajabee's picture
download
raw
654 Bytes
import earcut from './lib/earcut.js';
class Earcut {
/**
* Triangulates the given shape definition by returning an array of triangles.
*
* @param {Array<number>} data - An array with 2D points.
* @param {Array<number>} holeIndices - An array with indices defining holes.
* @param {number} [dim=2] - The number of coordinates per vertex in the input array.
* @return {Array<number>} An array representing the triangulated faces. Each face is defined by three consecutive numbers
* representing vertex indices.
*/
static triangulate( data, holeIndices, dim = 2 ) {
return earcut( data, holeIndices, dim );
}
}
export { Earcut };

Xet Storage Details

Size:
654 Bytes
·
Xet hash:
9cfb6b1d42df85e6daf3aa52f154490950f8eb8689409d08c46b2b5c3cfa0e47

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.