41 const std::string &output_file_path)
43 typedef boost::graph_traits< MeshT > GraphTraits;
44 typedef GraphTraits::halfedge_descriptor halfedge_descriptor;
53 if(h == GraphTraits::null_halfedge())
55 std::cout <<
"Failed to retrieve edge from " << source_index <<
" to "
56 << target_index <<
"." << std::endl;
57 std::cout <<
"Exiting";
61 std::cout <<
"Collapsing edge " << source_index <<
" to " << target_index
72 main(
int narg,
char **argv)
74 if(narg < 3 || narg > 4)
77 std::cout <<
"Usage: a.out filename; filename being an off file."
82 std::string to_treat = argv[1];
84 int deletion_case = std::stoi(std::string(argv[2]));
85 std::string output_file_name = std::string(argv[0]) + argv[2] +
".off";
87 if(deletion_case == 0)
91 else if(deletion_case == 1)
95 else if(deletion_case == 2)