UNPKG
@xtor/cga.js
Version:
latest (0.0.6)
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Xtor Compute Geometry Algorithm Libary 计算几何算法库
github.com/yszhao91/cga.js
yszhao91/cga.js
@xtor/cga.js
/
dist
/
alg
/
trianglution.d.ts
9 lines
(8 loc)
•
332 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/** * 三角剖分 earcut.js *
@param
{
Array
} boundary 边界 *
@param
{
Array<Array>
} holes 洞的数组 *
@param
{
options:{feature,dim,normal
}} feature 选择平平面 *
@returns
{
Array<Number>
} 三角形索引数组 */
export
declare
function
triangulation
(
inboundary
:
any
,
holes
?:
any
[],
options
?:
any
):
number
[];