From d34dc048eb3aea87efd64c31bcd2f62569d152b6 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Fri, 31 Aug 2012 14:08:31 +0000 Subject: [PATCH] tiny cosmetic changes --- Mesh_3/include/CGAL/Mesh_3/Mesh_global_optimizer.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 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 1288062b901..ab892e23d28 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Mesh_global_optimizer.h +++ b/Mesh_3/include/CGAL/Mesh_3/Mesh_global_optimizer.h @@ -331,7 +331,7 @@ operator()(int nb_iterations, Visitor visitor) // Update mesh with those moves update_mesh(moves, moving_vertices, visitor); visitor.end_of_iteration(i); - + #ifdef CGAL_MESH_3_OPTIMIZER_VERBOSE unsigned int moving_vertices_size = moving_vertices.size(); std::cerr << boost::format("\r \r" @@ -423,21 +423,23 @@ compute_moves(/*const */Moving_vertices_set& moving_vertices) Vector_3 move = compute_move(oldv); ++vit; - if ( CGAL::NULL_VECTOR != move ) + if ( CGAL::NULL_VECTOR != move ) { Point_3 new_position = translate(oldv->point(),move); moves.push_back(std::make_pair(oldv,new_position)); } #if defined(CGAL_IMPROVE_FREEZE) && defined(CGAL_FREEZE_VERTICES) else // CGAL::NULL_VECTOR == move - moving_vertices.erase(oldv); + { + moving_vertices.erase(oldv); + } #endif // Stop if time_limit_ is reached if ( is_time_limit_reached() ) break; } - + return moves; }