UNPKG

earclip

Version:

Triangle mesh designed to be fast, efficient, and sphere capable.

8 lines 339 B
/** * @param data - an array of polygon vertices flattened * @param holeIndices - starting index positions of the holes * @param dim - number of coordinates per vertex * @returns - the triangulation */ export default function earcut(data: number[], holeIndices?: number[], dim?: number): number[]; //# sourceMappingURL=earcut.d.ts.map