$search
00001 /* 00002 James R. Diebel 00003 Stanford University 00004 00005 Started: 24 August 2004 00006 Last revised: 27 Sugust 2004 00007 00008 ply2msh.cc - Utility to convert a PLY file to a mesh (MSH) file 00009 00010 Depends on: 00011 - Mesh class (mesh.hh) 00012 -- Vec3d class (vec3d.hh) 00013 -- Vert class (vert.hh) 00014 -- Edge class (edge.hh) 00015 -- Face class (face.hh) 00016 - Timer class (timer.hh) 00017 - TriMesh class (trimesh.h) 00018 */ 00019 00020 00021 #include <iostream> 00022 #include "bmtk/mesh.hh" 00023 #include "bmtk/timer.hh" 00024 00025 using namespace std; 00026 00027 int main (int argc, char *argv[]) { 00028 // if bad command line args, give usage instructions and exit 00029 if (argc < 2) { 00030 cout << endl << "Usage: console file " << endl; 00031 exit(1); 00032 } 00033 00034 // start stopwatch 00035 Timer t("","\n"); 00036 t.start(); 00037 t.printMark("Start"); 00038 00039 // read back mesh to make sure things are working ok 00040 Mesh m; 00041 m.readMesh(argv[1]); 00042 t.printMark("Reading mesh from file"); 00043 00044 // give final time and return success 00045 t.printStore(); 00046 return 0; 00047 }