8 #define MBI mb_instance()
14 int main(
int argc,
char** argv )
19 std::cout <<
"Need name of input file with quads." << std::endl;
25 std::string filename = argv[1];
26 result =
MBI->load_file( filename.c_str() );
29 std::cout <<
"Error reading file." << std::endl;
36 std::cout <<
"Error converting to tris." << std::endl;
42 int len1 = filename.length();
43 filename.erase( len1 - 4 );
44 std::string filename_new = filename +
"_tris.h5m";
45 result =
MBI->write_mesh( filename_new.c_str() );