diff --git a/Surface_mesher/changes.txt b/Surface_mesher/changes.txt index 49fdfbbb079..21c8ef1c84c 100644 --- a/Surface_mesher/changes.txt +++ b/Surface_mesher/changes.txt @@ -1,6 +1,7 @@ 28 June 2006 Laurent Rineau - extends Robust_circumcenter_traits_3 so that this class is model of ConstructCicumcenter_3. +- fix operator>> for c2t3, so that number_of_facets is computed correctly. 26 June 2006 Laurent Rineau - in Surface_mesher: diff --git a/Surface_mesher/include/CGAL/Complex_2_in_triangulation_3.h b/Surface_mesher/include/CGAL/Complex_2_in_triangulation_3.h index 18330aafefd..f2f4cc24882 100644 --- a/Surface_mesher/include/CGAL/Complex_2_in_triangulation_3.h +++ b/Surface_mesher/include/CGAL/Complex_2_in_triangulation_3.h @@ -256,12 +256,6 @@ protected: return ( i != 0); } - // auxiliary function for - // union_find_of_incident_facets(const Vertex_handle v, int&, int&) - void profile_union_find_of_incident_facets_cache_valid() - { - CGAL_PROFILER("number of c2t3 cache success"); - } // extract the subset F of facets of the complex incident to v // set i to the number of facets in F // set j to the number of connected component of the adjacency graph @@ -271,12 +265,9 @@ protected: { i = v->cached_number_of_incident_facets(); j = v->cached_number_of_components(); - profile_union_find_of_incident_facets_cache_valid(); return; } - CGAL_PROFILER("number of c2t3 cache failure"); - Union_find facets; incident_facets(v, std::back_inserter(facets)); @@ -517,7 +508,7 @@ operator>> (std::istream& is, Complex_2_in_triangulation_3& c2t3) fit != c2t3.triangulation().finite_facets_end(); ++fit) if(fit->first->is_facet_on_surface(fit->second)) - c2t3.set_in_complex(*fit); + c2t3.template change_in_complex_status(fit->first, fit->second); return is; }