| MATLAB Function Reference | ![]() |
Syntax
TES = delaunay3(x,y,z)
Description
TES = delaunay3(x,y,z)
傳回一個陣列 TES,它的每一橫列包含 (x,y,z) 裡面點的索引值,索引值標出 (x,y,z) 的 tesselation 產生的四面體。TES 是一個 numtes-by-4 陣列,其中 numtes 是 tesselation 中面的個數。x,y 和 z 是相同長度的向量。
delaunay3 以 qhull 為基礎 [2]。 更多有關 qhull 的資訊,請見 http://www.geom.umn.edu/software/qhull/。版權的資訊,請見 http://www.geom.umn.edu/software/download/COPYING.html。
Example
d = [-1 1];
[x,y,z] = meshgrid(d,d,d); % A cube
x = [x(:);0];
y = [y(:);0];
z = [z(:);0];
% [x,y,z] are corners of a cube plus the center.
Tes = delaunay3(x,y,z)
Tes =
9 7 3 5
1 9 3 5
1 2 9 5
4 9 7 3
4 9 7 8
4 1 9 3
4 1 2 9
6 2 9 5
6 9 7 5
6 9 7 8
6 4 9 8
6 4 2 9
See Also
Reference
[2] National Science and Technology Research Center for Computation and Visualization of Geometric Structures (The Geometry Center), University of Minnesota. 1993.
| delaunay | delaunayn | ![]() |