proj home

Files   Classes   Functions   Hierarchy  

triangleindexed.h

Go to the documentation of this file.
00001 #ifndef TRIANGLEINDEXED_H
00002 #define TRIANGLEINDEXED_H
00003 
00004 #include <vector>
00005 using namespace std;
00006 
00007 
00008 
00015 template< typename T >
00016 class triangleindexed
00017 {
00018 public:
00019 
00021   vector< uint > vi;
00023   vector< T > points;
00024 
00025 };
00026 
00030 template< typename T >
00031 class triangleindexedref
00032 {
00033 public:
00034 
00036   vector< uint > & vi;
00038   vector< T > & points;
00039 
00041   triangleindexedref
00042   (
00043     vector< uint > & vi_,
00044     vector< T > & points_
00045   )
00046     : vi(vi_), points(points_) {}
00047 };
00048 
00049 
00053 template< typename T >
00054 class triangleindexedN
00055 {
00056 public:
00057 
00059   vector< uint > vi;
00061   vector< T > points;
00063   vector< T > normals;
00064 
00065 };
00066   
00070 template< typename T >
00071 class triangleindexedNref
00072 {
00073 public:
00074  
00076   vector< uint >& vi;
00078   vector< T >& points;
00080   vector< T >& normals;
00081 
00083   triangleindexedNref
00084   (
00085     vector< uint > & vi_,
00086     vector< T > & points_,
00087     vector< T> & normals_
00088   )
00089     : vi(vi_), points(points_), normals(normals_) {}
00090 
00091 };
00092 
00093 
00094 
00095 
00096 
00097 
00098 #endif
00099 
00100 

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