8 int main(
int argc,
char **argv)
13 std::cout <<
"Compute the MSDM2 value between the degraded mesh and "
14 "the original mesh.\n"
16 std::cout <<
"Usage: "
17 << argv[0] <<
" path/to/original_mesh.off path/to/degraged_mesh.off"
19 std::cout <<
"Note: only OFF files are supported."
26 std::string filename_original(argv[1]);
27 std::string filename_degraded(argv[2]);
33 std::ifstream in1(filename_original);
35 std::cout <<
"Original mesh file name: " << filename_original << std::endl;
36 std::cout <<
"Original mesh vertices number: " << mesh_original.number_of_vertices() << std::endl;
38 std::ifstream in2(filename_degraded);
40 std::cout <<
"Degraded mesh file name: " << filename_degraded << std::endl;
41 std::cout <<
"Degraded mesh vertices number: " << mesh_degraded.number_of_vertices() << std::endl;
53 std::cout <<
"Calculated MSDM2 : " << msdm2_value << std::endl;