
Delaunay 三角剖分,采用 Bowyer-Watson 算法作为基础。
5星
- 浏览量: 0
- 大小:None
- 文件类型:None
简介:
德劳内利用 Bowyer-Watson 算法对 Delaunay 三角剖分技术的 HTML 文档中的脚本元素进行了处理:< script type = text/javascript src = delaunay.js > </ script > 同时,该项目通过 Node.js / io.js 模块的导入,实现了对 delaunay 模块的访问:var delaunay = require ( delaunay ) ;为了演示其功能,提供了一个示例,其中定义了顶点数组 vertices 和尺寸参数 width 和 height,设置为 640 和 480 分别。随后,程序生成了 20 个随机位置的顶点,并将它们添加到 vertices 数组中,具体实现如下:for ( var i = 0 ; i < 20 ; i ++ ) { vertices . push ( new delaunay . Vertex ( Math . floor ( Math .
全部评论 (0)
还没有任何评论哟~


