From 245250dfadda20105b4d1c16d5764fb8a25e7e87 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Wed, 2 Oct 2013 12:59:03 +0200 Subject: [PATCH] do not test inside_protecting_balls for ODT and Lloyd because it slows down the algorithm and never happens for Lloyd and ODT (experimentally tested. Maybe it can happen some day...) --- Mesh_3/include/CGAL/Mesh_3/Mesh_global_optimizer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/Mesh_global_optimizer.h b/Mesh_3/include/CGAL/Mesh_3/Mesh_global_optimizer.h index a42f5fd0d5a..5882b1930f8 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Mesh_global_optimizer.h +++ b/Mesh_3/include/CGAL/Mesh_3/Mesh_global_optimizer.h @@ -412,8 +412,10 @@ compute_moves(Moving_vertices_set& moving_vertices) if ( CGAL::NULL_VECTOR != move ) { Point_3 new_position = translate(oldv->point(),move); - if( !Th().inside_protecting_balls(tr_, oldv, new_position)) - moves.push_back(std::make_pair(oldv,new_position)); + //if( !Th().inside_protecting_balls(tr_, oldv, new_position)) + //note : this is not happening for Lloyd and ODT so it's commented + // maybe for a new global optimizer it should be de-commented + moves.push_back(std::make_pair(oldv,new_position)); } else // CGAL::NULL_VECTOR == move {