41 const std::string &output_file_path)
43 typedef boost::graph_traits< MeshT > GraphTraits;
44 typedef GraphTraits::halfedge_descriptor halfedge_descriptor;
52 if(h == GraphTraits::null_halfedge())
54 std::cout <<
"Failed to retrieve edge from " << source_index <<
" to "
55 << target_index <<
"." << std::endl;
56 std::cout <<
"Exiting";
60 std::cout <<
"Flipping edge " << source_index <<
" to " << target_index <<
"."
71 main(
int narg,
char **argv)
73 if(narg < 3 || narg > 5)
75 std::cout <<
"Usage: " << argv[0]
76 <<
" filename int [filenameresult [filenameexpectedresult]]; int "
77 "is either 0, 1, 2 or 3."
82 std::string to_treat = argv[1];
84 int halfedge_case = std::stoi(std::string(argv[2]));
85 std::string output_file_name = std::string(argv[3]);
87 if(halfedge_case == 0)
91 else if(halfedge_case == 1)
95 else if(halfedge_case == 2)
99 else if(halfedge_case == 3)