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 <<
"Splitting edge " << source_index <<
" to " << target_index
72 main(
int narg,
char **argv)
74 if(narg < 3 || narg > 5)
76 std::cout <<
"Usage: " << argv[0]
77 <<
" filename int [filenameresult [filenameexpectedresult]]; int "
78 "is either 0, 1, 2 or 3."
83 std::string to_treat = argv[1];
85 int halfedge_case = std::stoi(std::string(argv[2]));
86 std::string output_file_name = std::string(argv[3]);
88 if(halfedge_case == 0)
92 else if(halfedge_case == 1)
96 else if(halfedge_case == 2)
100 else if(halfedge_case == 3)