convex hull algorithm for 3d surface z = f(x, y)

好久不见. 提交于 2019-12-09 06:59:38

问题


I have a 3D surface given as a set of triples (x_i, y_i, z_i), where x_i and y_i are roughly on a grid, and each (x_i, y_i) has a single associated z_i value. The typical grid is 20x20

I need to find which points belong to the convex hull of the surface, within a given tolerance. I'm looking for an efficient algorithm to perform the computation (my customer has provided an O(n³) version, which takes ~10s on a 400 point dataset...)


回答1:


There's quite a lot out there, didn't you search?

Here are a couple with O(n log h) runtime, where n is number of input points and h is number of vertices of the result:

http://en.wikipedia.org/wiki/Chan%27s_algorithm

http://en.wikipedia.org/wiki/Kirkpatrick-Seidel_algorithm

Here is a demonstration of four methods, with links to the algorithms:

http://www.cse.unsw.edu.au/~lambert/java/3d/hull.html




回答2:


The O(n^3) version is probably Jarvis algorithm for 3d Hull. Look at this algorithm, I think is well described:



来源:https://stackoverflow.com/questions/7173084/convex-hull-algorithm-for-3d-surface-z-fx-y

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!