proj home

Files   Classes   Functions   Hierarchy  

pointgrid3D.h

Go to the documentation of this file.
00001 #ifndef POINTGRID3D_H
00002 #define POINTGRID3D_H
00003 
00004 #include <vector>
00005 using namespace std;
00006 
00007 #include <point.h>
00008 #include <print.h>
00009 
00037 class pointgrid3D
00038 {
00039 public:
00040 
00042   uintc M;
00044   uintc N;
00045 
00047   point3<double> * pt;
00048 
00050   point3<double> const & pij(uintc i, uintc j) const
00051     { return pt[i+j*N]; }
00052 
00055   pointgrid3D(uintc M_, uintc N_);
00056 
00059   pointgrid3D
00060   (
00061     uintc M_, 
00062     uintc N_, 
00063     doublec x0,
00064     doublec x1,
00065     doublec y0,
00066     doublec y1
00067   );
00068 
00071   pointgrid3D
00072   (
00073     uintc M_, 
00074     uintc N_, 
00075     doublec x0,
00076     doublec x1,
00077     doublec z0,
00078     doublec z1,
00079     bool const xzsurface
00080   );
00081 
00084   void createIndexedTriangles
00085   (
00086     vector< point3<double> > & points,
00087     vector< point3<uint> > & vi
00088   ) const;
00089 
00090   template< typename T >
00091   void createIndexedTrianglesT( T & x ) const 
00092     { createIndexedTriangles(x.points,x.vi); } 
00093 
00095   ~pointgrid3D();
00096 };
00097 
00098 
00099 #endif
00100 

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