mirror of https://github.com/CGAL/cgal
Fix not rescaling some balls in 2D protection with non-zero minimal weight
The code break'd but did not restart if a special ball was encountered
This commit is contained in:
parent
6f65ecf246
commit
49bb14b6d2
|
|
@ -854,10 +854,6 @@ smart_insert_point(const Bare_point& p, Weight w, int dim, const Index& index,
|
|||
else // tr.dimension() <= 2
|
||||
{
|
||||
// change size of existing balls which include p
|
||||
bool restart = true;
|
||||
while ( restart )
|
||||
{
|
||||
restart = false;
|
||||
for ( typename Tr::Finite_vertices_iterator it = tr.finite_vertices_begin(),
|
||||
end = tr.finite_vertices_end() ; it != end ; ++it )
|
||||
{
|
||||
|
|
@ -877,10 +873,6 @@ smart_insert_point(const Bare_point& p, Weight w, int dim, const Index& index,
|
|||
if( ! is_special(it) ) {
|
||||
*out++ = it;
|
||||
change_ball_size(it, sq_d, special_ball);
|
||||
restart = true;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue