Files Classes Functions Hierarchy
#include <delaunay3D.h>
Public Member Functions | |
| delaunay3D (vector< point3< double > > const &vi_) | |
| Pass in the vector of points at construction time. | |
| void | eval () |
| O(n^5) tessellation of the given vector of points. | |
Public Attributes | |
| vector< point4< uint > > | tet |
| Vector of Tetrahedrons where the integer index refers to a point in v. | |
Recommend n being a very small number of points(eg 20).
Definition at line 15 of file delaunay3D.h.
| delaunay3D::delaunay3D | ( | vector< point3< double > > const & | vi_ | ) |
| void delaunay3D::eval | ( | ) |
O(n^5) tessellation of the given vector of points.
Places the tetrahedrons in tet. The tets faces have an anticlockwise winding as viewed from outside the tetrahedron.
Definition at line 18 of file delaunay3D.cpp.
References tet.
Referenced by test01(), test02(), and test03().
00019 { 00020 tet.clear(); 00021 00022 if (n>200) 00023 { 00024 cout << "error: n is too large." << endl; 00025 cout << " this is an O(n^5) algorithm." << endl; 00026 return; 00027 } 00028 00029 uint a,i,j,k; 00030 00031 for (i=0; i<n-3; ++i) 00032 { 00033 for (j=i+1; j<n-2; ++j) 00034 { 00035 for (k=j+1; k<n-1; ++k) 00036 { 00037 for (a=k+1; a<n; ++a) 00038 { 00039 evaluateTetrahedron(i,j,k,a); 00040 } 00041 } 00042 } 00043 } 00044 }
| vector< point4<uint> > delaunay3D::tet |
1.5.8