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:
Mael Rouxel-Labbé 2023-07-12 10:03:14 +02:00
parent 6f65ecf246
commit 49bb14b6d2
1 changed files with 15 additions and 23 deletions

View File

@ -854,10 +854,6 @@ smart_insert_point(const Bare_point& p, Weight w, int dim, const Index& index,
else // tr.dimension() <= 2 else // tr.dimension() <= 2
{ {
// change size of existing balls which include p // 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(), for ( typename Tr::Finite_vertices_iterator it = tr.finite_vertices_begin(),
end = tr.finite_vertices_end() ; it != end ; ++it ) 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) ) { if( ! is_special(it) ) {
*out++ = it; *out++ = it;
change_ball_size(it, sq_d, special_ball); change_ball_size(it, sq_d, special_ball);
restart = true;
}
break;
} }
} }
} }