25 template<
typename T >
29 std::cout << title <<
" =" << std::endl;
30 for(
auto element : container)
31 std::cout <<
" " << element << std::endl;
32 std::cout << std::endl;
42 template<
typename T >
46 bool are_equal =
false;
50 for(
size_t i = 0; i < v1.size(); i++)
54 std::cout <<
"rotate number = " << i << std::endl;
62 std::cout <<
"v1 == v2" << std::endl;
69 std::cout <<
"v1 != v2" << std::endl;
73 std::rotate(v2.begin(), v2.begin() + 1, v2.end());
76 if(are_equal ==
false && test_in_reverse_order_too)
79 std::cout <<
"reverse v2" << std::endl;
80 std::reverse(v2.begin(), v2.end());
81 test_in_reverse_order_too =
false;
208 std::cout <<
"Input mesh:\n";
230 std::cout <<
"testing get_ordered_one_ring_edges(v0)" << std::endl;
232 "helpers::get_ordered_one_ring_edges(v0)");
234 "std::vector<edge_descriptor>{e2, e1, e0, e3, e8}");
238 std::vector< edge_descriptor >{e1, e8, e2, e3, e0})
242 std::cout <<
"testing get_ordered_one_ring_vertices(v0)" << std::endl;
245 std::vector< vertex_descriptor >{v3, v5, v3, v4, v1, v2})
248 std::cout <<
"testing get_ordered_one_ring_vertices(v1)" << std::endl;
250 std::vector< vertex_descriptor >{v2, v0, v4}));
252 std::cout <<
"testing get_ordered_one_ring_vertices(v2)" << std::endl;
254 std::vector< vertex_descriptor >{v3, v0, v1}));
258 std::cout <<
"testing get_ordered_one_ring_of_adjacent_vertices(v0)"
262 std::vector< vertex_descriptor >{v3, v5, v3, v4, v1, v2})
282 std::vector< edge_descriptor >{e1, e8, e2, e3, e11, e0})
286 std::cout <<
"testing get_ordered_one_ring_vertices(v0)" << std::endl;
289 std::vector< vertex_descriptor >{v3, v5, v3, v4, v1, v6, v1, v2})
293 #if 0 // dangling one-ring polylines not yet managed
311 std::vector<edge_descriptor>{e1, e8, e13, e2, e3, e11, e0})
315 std::cout <<
"testing get_ordered_one_ring_vertices(v0)" << std::endl;
317 std::vector<vertex_descriptor>{v3, v5, v7, v5, v3, v4, v1, v6, v1, v2})