20 #include <CGAL/Polyhedron_incremental_builder_3.h>
27 typedef typename EnrichedPolyhedron::Point_3
Point3d;
41 typedef typename HDS::Traits::Point_3
Point_3;
47 typedef typename std::vector<unsigned long>
Indices;
53 typedef typename CGAL::Polyhedron_incremental_builder_3<HDS>
Builder;
86 if(he->vertex()->Label == 0xFFFFFFFF)
add_vertex(he->vertex()->point(), he->vertex()->Label);
87 vi.push_back(he->vertex()->Label);
92 if(he->next()->vertex()->Label == 0xFFFFFFFF)
add_vertex(he->next()->vertex()->point(), he->next()->vertex()->Label);
93 vi.push_back(he->next()->vertex()->Label);
94 if(he->next()->next()->vertex()->Label == 0xFFFFFFFF)
add_vertex(he->next()->next()->vertex()->point(), he->next()->next()->vertex()->Label);
95 vi.push_back(he->next()->next()->vertex()->Label);
99 if(he->next()->next()->vertex()->Label == 0xFFFFFFFF)
add_vertex(he->next()->next()->vertex()->point(), he->next()->next()->vertex()->Label);
100 vi.push_back(he->next()->next()->vertex()->Label);
101 if(he->next()->vertex()->Label == 0xFFFFFFFF)
add_vertex(he->next()->vertex()->point(), he->next()->vertex()->Label);
102 vi.push_back(he->next()->vertex()->Label);
117 for(
unsigned int i = 0;i != T.size();++i)
123 for(
unsigned int j = 0 ; j != 3 ; ++j)
128 if(he->vertex()->Label != 0xFFFFFFFF)
130 T[i][j] = he->vertex()->Label;
135 he->vertex()->Label = T[i][j];
140 if(he->next()->vertex()->Label != 0xFFFFFFFF)
142 T[i][j] = he->next()->vertex()->Label;
147 he->next()->vertex()->Label = T[i][j];
152 if(he->next()->next()->vertex()->Label != 0xFFFFFFFF)
154 T[i][j] = he->next()->next()->vertex()->Label;
159 he->next()->next()->vertex()->Label = T[i][j];
191 B.begin_surface(3,1);
205 for(
int i = 0; i != (int)this->m_Sorted_vertices.size(); i++)
207 B.add_vertex(this->m_Sorted_vertices[i]);
217 for(
int i = 0; i != (int)this->m_Facets_indices.size(); i++)
220 for(
int j = 0; j != (int)this->m_Facets_indices[i].size(); j++)
222 B.add_vertex_to_facet(this->m_Facets_indices[i][j]);