代码拉取完成,页面将自动刷新
================================================================================
Delaunay:
Simple implementation of the Delaunay triangulation in C++.
Video: http://www.youtube.com/watch?v=bzQWU2Y564w
Requires:
Linux
Qt4
Clang (>3.0)
SCons
Build / Usage:
a) $> scons build
b) $> scons run
c) Click on the window to add points and see the triangulation =)
d) Press the "R" key to clear the mesh.
---
If you want to write/run tests:
You need: Linux amd64 or custom googletest libs
build with [$> scons] or [$> scons buildtest]
---
================================================================================
This program is a simple implementation of an incremental algorithm to obtain
the Delaunay triangulation of a set of points.
This is a part of a closed source application but it is a cool demo and might
be useful so I wanted to share it with the GPL license.
It is O(n^2). After profiling with the intended use (clicking on the screen..)
I realized that less than 30% of the generation time is spent on
point location while more than 70% is spent splitting triangles. An O(nlogn)
improvement would be negligible for the use that I'll give to this code.
Note:
Includes a hacked gch.py scons tool for precompiled clang headers.
================================================================================
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。