$search
00001 /* 00002 James R. Diebel 00003 Stanford University 00004 00005 Started: 6 June 2005 00006 */ 00007 00008 00009 #include <iostream> 00010 #include "bmtk/mesh.hh" 00011 #include "bmtk/timer.hh" 00012 #include <trimesh/trimesh.h> 00013 00014 using namespace std; 00015 using namespace bmtk; 00016 00017 int main (int argc, char *argv[]) { 00018 // if bad command line args, give usage instructions and exit 00019 if (argc < 3) { 00020 cout << endl 00021 << "Usage: gts2msh infile.gts outfile.msh" << endl 00022 << " infile.gts must be a GTS file" << endl 00023 << " outfile.msh is the name of the output msh file" << endl; 00024 exit(1); 00025 } 00026 00027 // create empty Mesh and then fill it with data from ply file 00028 Mesh m; 00029 m.buildFromGTS(argv[1]); 00030 00031 // output it to the specified file 00032 m.writeMesh(argv[2]); 00033 00034 return 0; 00035 } 00036 00037