Skip to content

Commit

Permalink
reuse the first full cell in case it already exist.
Browse files Browse the repository at this point in the history
when a triangulation is cleared, a full cell is always
created when adding the infinite vertex
  • Loading branch information
sloriot committed Oct 4, 2018
1 parent 4ed546e commit 3ed89cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Triangulation/include/CGAL/Triangulation_data_structure.h
Expand Up @@ -1390,7 +1390,9 @@ ::read_full_cells(std::istream & is, const std::vector<Vertex_handle> & vertices
std::size_t i = 0;
while( i < m )
{
Full_cell_handle s = new_full_cell();
Full_cell_handle s = (i==0 && full_cells_.size()==1 )
? full_cells_begin()
: new_full_cell();
full_cells.push_back(s);
for( int j = 0; j <= cd; ++j )
{
Expand Down

0 comments on commit 3ed89cb

Please sign in to comment.