PlyStructure.h
Go to the documentation of this file.
00001  
00002 #ifndef PLY_STRUCTURE
00003 #define PLY_STRUCTURE
00004 
00005 namespace Tracking{
00006   
00007 struct PlyVertex {
00008         float x,y,z;                // spatial position
00009         float nx, ny, nz;           // normal vector
00010         float s, t;
00011         unsigned char r, g, b;      // color
00012 };
00013 
00014 struct PlyFace {
00015         unsigned short nverts;      // number of vertices used for the face (Quad=4, Triangle=3)
00016         unsigned int* v;            // pointer to memory holding the vertex-index list
00017         float t[3], b[3], n[3];                 // Tangent space vectors
00018 };
00019 
00020 struct PlyEdge {
00021         unsigned short start;       // start vertex index
00022         unsigned short end;         // end vertex index
00023 };
00024 
00025 struct PlyPass {
00026         unsigned short nfaces;                  // Number of faces using this pass
00027         unsigned int* f;                                                // pointer to memory holding the face-index list
00028         float m0,m1,m2,m3;                                      // matrix entries
00029         float m4,m5,m6,m7;                                      // matrix entries
00030         float m8,m9,m10,m11;                                    // matrix entries
00031         float m12,m13,m14,m15;                                  // matrix entries       
00032         float x,y,w,h;                                                  // bounding box of texture with respect to modelview-projection-matrix
00033         unsigned short tex;                                     // index of texture
00034 };
00035 
00036 }
00037 
00038 #endif


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:12