proj home

Files   Classes   Functions   Hierarchy  

delaunay3D Class Reference

O(n^5) 3D tessellation algorithm. More...

#include <delaunay3D.h>

Collaboration diagram for delaunay3D:

List of all members.

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.


Detailed Description

O(n^5) 3D tessellation algorithm.

Recommend n being a very small number of points(eg 20).

Definition at line 15 of file delaunay3D.h.


Constructor & Destructor Documentation

delaunay3D::delaunay3D ( vector< point3< double > > const &  vi_  ) 

Pass in the vector of points at construction time.

Definition at line 10 of file delaunay3D.cpp.

00013   : vi(vi_)
00014 {
00015   n = vi.size();
00016 }


Member Function Documentation

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 }


Member Data Documentation

Vector of Tetrahedrons where the integer index refers to a point in v.

Definition at line 28 of file delaunay3D.h.

Referenced by eval(), test01(), test02(), and test03().


The documentation for this class was generated from the following files:

Generated on Fri Mar 4 00:49:55 2011 for Chelton Evans Source by  doxygen 1.5.8