36 const std::string &output_file_name)
45 if(!(pm = in.
read(filename)))
47 std::cout <<
"failed";
51 typedef boost::graph_traits< Mesh > GraphTraits;
57 if(e == GraphTraits::null_edge())
59 std::cout <<
"Failed to retrieve edge from " << source_index <<
" to "
60 << target_index <<
"." << std::endl;
61 std::cout <<
"Exiting";
65 std::cout <<
"Splitting edge " << source_index <<
" to " << target_index
74 out.
write(pm, output_file_name);
78 std::cout <<
"writing failed";
86 main(
int narg,
char **argv)
88 if(narg < 3 || narg > 5)
90 std::cout <<
"Usage: " << argv[0]
91 <<
" filename int [filenameresult [filenameexpectedresult]]; int "
92 "is either 0, 1, 2 or 3."
97 std::string to_treat = argv[1];
99 int halfedge_case = std::stoi(std::string(argv[2]));
100 std::string output_file_name = std::string(argv[3]);
102 if(halfedge_case == 0)
106 else if(halfedge_case == 1)
110 else if(halfedge_case == 2)
114 else if(halfedge_case == 3)
118 else if(halfedge_case == 4)
122 else if(halfedge_case == 5)