00001 00024 #ifndef __PLY_FILE__ 00025 #define __PLY_FILE__ 00026 00027 #include <string> 00028 #include <vector> 00029 00030 namespace DVision { 00031 namespace PMVS { 00032 00034 class PLYFile 00035 { 00036 public: 00038 struct PLYPoint 00039 { 00040 double x, y, z; 00041 double nx, ny, nz; 00042 int r, g, b; 00043 }; 00044 00045 public: 00046 00052 static void readFile(const std::string &filename, std::vector<PLYPoint>& points); 00053 00059 static void saveFile(const std::string &filename, const std::vector<PLYPoint>& points); 00060 00066 static int getNumberOfPoints(const std::string &filename); 00067 00068 }; 00069 00070 } 00071 } 00072 00073 #endif