diff --git a/Packages/Triangulation_3/changes.txt b/Packages/Triangulation_3/changes.txt index 762f9f8bd2e..30b9a7f8ff7 100644 --- a/Packages/Triangulation_3/changes.txt +++ b/Packages/Triangulation_3/changes.txt @@ -1,3 +1,6 @@ +Version 1.113 (7 May 02) +- bug fix in deprecated version of incident_vertices() + Version 1.112 (12 April 02) - Split insert_conflict() in insert_conflict_2() and insert_conflict_3(). diff --git a/Packages/Triangulation_3/include/CGAL/Triangulation_data_structure_3.h b/Packages/Triangulation_3/include/CGAL/Triangulation_data_structure_3.h index 34ac2b60942..0ec081be197 100644 --- a/Packages/Triangulation_3/include/CGAL/Triangulation_data_structure_3.h +++ b/Packages/Triangulation_3/include/CGAL/Triangulation_data_structure_3.h @@ -2217,31 +2217,7 @@ incident_vertices(Vertex_handle v, std::set & vertices, CGAL_triangulation_precondition( v != NULL ); CGAL_triangulation_expensive_precondition( is_vertex(v) ); - if ( number_of_vertices() < 2 ) - return; - - if ( c == NULL ) - c = v->cell(); - else - CGAL_triangulation_precondition( c->has_vertex(v) ); - - int d = dimension(); - int j; - int found = 0; - for ( j=0; j <= d; j++ ) { - if ( j != c->index(v) ) { - if ( vertices.find( c->vertex(j) ) == vertices.end() ) - vertices.insert( c->vertex(j) ); - else - found++; // c->vertex(j) was already found - } - } - if ( found == 3 ) - return; // c was already visited - - for ( j=0; j <= d; j++ ) - if ( j != c->index(v) ) - incident_vertices( v, vertices, c->neighbor(j) ); + incident_vertices(v, std::inserter(vertices, vertices.begin())); } template