00001 #ifndef CD_WAVEFRONT_OBJ_H 00002 00003 00004 #define CD_WAVEFRONT_OBJ_H 00005 00062 namespace ConvexDecomposition 00063 { 00064 00065 class WavefrontObj 00066 { 00067 public: 00068 00069 WavefrontObj(void); 00070 ~WavefrontObj(void); 00071 00072 unsigned int loadObj(const char *fname); // load a wavefront obj returns number of triangles that were loaded. Data is persists until the class is destructed. 00073 00074 int mVertexCount; 00075 int mTriCount; 00076 int *mIndices; 00077 double *mVertices; 00078 }; 00079 00080 }; 00081 00082 #endif