【文件属性】:
文件名称:weighted-delaunay:构造点集的加权Delaunay三角剖分
文件大小:128KB
文件格式:ZIP
更新时间:2021-05-23 22:33:43
JavaScript
加权德劳内
构造一组点的加权Delaunay三角剖分。 这等效于构造半径与每个点的权重相同的一组球的Delaunay三角剖分。
例子
var wdt = require ( 'weighted-delaunay' )
var points = new Array ( 10 )
var weights = new Array ( 10 )
for ( var i = 0 ; i < 10 ; ++ i ) {
points [ i ] = [ Math . random ( ) , Math . random ( ) ]
weights [ i ] = Math . random ( )
}
var cells = wdt ( points , weights )
console . log ( cells )
输出
输出示例:
[ [ 1 , 0 , 5 ] ,
[ 1
【文件预览】:
weighted-delaunay-master
----.gitignore(109B)
----package.json(821B)
----visual()
--------visual2d.js(4KB)
----LICENSE(1KB)
----weighted-delaunay.js(1KB)
----examples()
--------simple.js(257B)
----README.md(1KB)
----img()
--------demo.png(126KB)
----test()
--------test.js(138B)