mirror of https://github.com/CGAL/cgal
reuse the first full cell in case it already exist.
when a triangulation is cleared, a full cell is always created when adding the infinite vertex
This commit is contained in:
parent
4ed546edce
commit
3ed89cbbab
|
|
@ -1390,7 +1390,9 @@ Triangulation_data_structure<Dimen, Vb, Fcb>
|
|||
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 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue