58 typedef std::vector< helpers::vertex_descriptor >::const_iterator iterator;
77 prev_vertex, current_edge, helpers::vertex_pos::FIRST);
79 current_vertex, current_edge, helpers::vertex_pos::SECOND);
84 prev_vertex = current_vertex;
95 throw std::runtime_error(
"Test Failed");
105 const unsigned int nb_vertices = 12;
108 for(
unsigned int i = 0; i < nb_vertices; ++i)
115 vertices[10], dedge, helpers::vertex_pos::SECOND);
118 const unsigned int nb_faces = 6;
121 std::vector< helpers::vertex_descriptor > face0 = {
125 std::vector< helpers::vertex_descriptor > face1 = {
129 std::vector< helpers::vertex_descriptor > face2 = {
133 std::vector< helpers::vertex_descriptor > face3 = {
137 std::vector< helpers::vertex_descriptor > face4 = {
141 std::vector< helpers::vertex_descriptor > face5 = {
193 typedef boost::iterator_range<
194 helpers::edge_container_in_vertex::const_iterator >
198 std::vector< unsigned int > vv_vec = {1, 2, 3, 5};
199 for(std::vector< unsigned int >::iterator it = vv_vec.begin();
264 vertices[2]) != helpers::vertex_pos::FIRST);
267 vertices[3]) == helpers::vertex_pos::FIRST);
270 vertices[2]) == helpers::vertex_pos::SECOND);
273 vertices[3]) != helpers::vertex_pos::SECOND);
293 vertices[4]) == helpers::vertex_pos::FIRST);
296 vertices[3]) == helpers::vertex_pos::SECOND);
302 vertices[4]) == helpers::vertex_pos::SECOND);
305 vertices[3]) == helpers::vertex_pos::FIRST);
325 typedef boost::iterator_range< helpers::vertex_container::const_iterator >
327 typedef boost::iterator_range< helpers::edge_container::const_iterator >
329 typedef boost::iterator_range< helpers::face_container::const_iterator >
337 for(e_range::iterator it = r2.begin(); it != r2.end(); ++it)
351 for(v_range::iterator it = r3.begin(); it != r3.end(); ++it)
354 for(e_range::iterator it = r4.begin(); it != r4.end(); ++it)
360 for(f_range::iterator it = r5.begin(); it != r5.end(); ++it)
363 std::vector< helpers::vertex_descriptor > vertices_to_delete;
367 std::back_inserter(vertices_to_delete));
372 for(std::vector< helpers::vertex_descriptor >::const_iterator it =
373 vertices_to_delete.cbegin();
374 it != vertices_to_delete.cend();
378 std::vector< helpers::edge_descriptor > edges_to_delete;
382 std::back_inserter(edges_to_delete));
387 for(std::vector< helpers::edge_descriptor >::const_iterator it =
388 edges_to_delete.cbegin();
389 it != edges_to_delete.cend();
393 std::vector< helpers::face_descriptor > faces_to_delete;
397 std::back_inserter(faces_to_delete));
402 for(std::vector< helpers::face_descriptor >::const_iterator it =
403 faces_to_delete.cbegin();
404 it != faces_to_delete.cend();
412 catch(std::runtime_error &e)
414 std::cout << e.what() <<
" (at assert #" <<
nbAssert <<
")" << std::endl;
418 std::cout <<
"Test Successful" << std::endl;