【文件属性】:
文件名称:delaunay:基于 Bowyer-Watson 算法的 Delaunay 三角剖分
文件大小:62KB
文件格式:ZIP
更新时间:2021-06-13 15:51:37
JavaScript
德劳内
基于 Bowyer-Watson 算法的 Delaunay 三角剖分
用法
HTML 文档中的脚本元素:
< script type =" text/javascript " src =" delaunay.js " > </ script >
Node.js / io.js 模块导入:
var delaunay = require ( 'delaunay' ) ;
例子
var vertices = [ ] ,
width = 640 ,
height = 480 ;
// Generate 20 vertices to random positions
for ( var i = 0 ; i < 20 ; i ++ ) {
vertices . push (
new delaunay . Vertex (
Math . floor ( Math .
【文件预览】:
delaunay-master
----.gitignore(10B)
----package.json(402B)
----LICENSE(1KB)
----README.md(1KB)
----screenshot.png(57KB)
----delaunay.js(5KB)
----example()
--------triangulation.js(2KB)
--------index.html(717B)