23 #ifndef ALPHA_COMPLEX_3D_HELPER_H_ 24 #define ALPHA_COMPLEX_3D_HELPER_H_ 26 template <
class Vertex_list,
class Cell_handle>
27 Vertex_list from_cell(
const Cell_handle& ch) {
29 for (
auto i = 0; i < 4; i++) {
31 std::cout <<
"from cell[" << i <<
"]=" << ch->vertex(i)->point() << std::endl;
32 #endif // DEBUG_TRACES 33 the_list.push_back(ch->vertex(i));
38 template <
class Vertex_list,
class Facet>
39 Vertex_list from_facet(
const Facet& fct) {
41 for (
auto i = 0; i < 4; i++) {
42 if (fct.second != i) {
44 std::cout <<
"from facet=[" << i <<
"]" << fct.first->vertex(i)->point() << std::endl;
45 #endif // DEBUG_TRACES 46 the_list.push_back(fct.first->vertex(i));
52 template <
class Vertex_list,
class Edge_3>
53 Vertex_list from_edge(
const Edge_3& edg) {
55 for (
auto i : {edg.second, edg.third}) {
57 std::cout <<
"from edge[" << i <<
"]=" << edg.first->vertex(i)->point() << std::endl;
58 #endif // DEBUG_TRACES 59 the_list.push_back(edg.first->vertex(i));
64 template <
class Vertex_list,
class Vertex_handle>
65 Vertex_list from_vertex(
const Vertex_handle& vh) {
68 std::cout <<
"from vertex=" << vh->point() << std::endl;
69 #endif // DEBUG_TRACES 70 the_list.push_back(vh);
74 #endif // ALPHA_COMPLEX_3D_HELPER_H_