00001 /********************************************************************** 00002 * print_mesh.C: 00003 **********************************************************************/ 00004 #include "std/config.H" 00005 #include "mi.H" 00006 00007 int 00008 main(int argc, char *argv[]) 00009 { 00010 if (argc != 1) { 00011 err_msg("Usage: %s < input.sm", argv[0]); 00012 return 1; 00013 } 00014 00015 BMESHptr mesh = BMESH::read_jot_stream(cin); 00016 if (!mesh || mesh->empty()) 00017 return 1; // didn't work 00018 mesh->print(); 00019 00020 return 0; 00021 }