From 52df5ae86eeddea3ae0a08fa79bce3afb668c64c Mon Sep 17 00:00:00 2001 From: Ivan Paden Date: Fri, 26 May 2023 11:03:27 +0200 Subject: [PATCH] Fix default remeshing overload --- .../include/CGAL/Polygon_mesh_processing/remesh.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh.h index 33f382ac463..2c31cf4c65f 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/remesh.h @@ -207,7 +207,7 @@ template void isotropic_remeshing(const FaceRange& faces - , const double& target_edge_length + , const double target_edge_length , PolygonMesh& pmesh , const NamedParameters& np = parameters::default_values()) { @@ -355,13 +355,15 @@ void isotropic_remeshing(const FaceRange& faces t.reset(); t.start(); #endif +// sizing.calc_sizing_map(); for (unsigned int i = 0; i < nb_iterations; ++i) { #ifdef CGAL_PMP_REMESHING_VERBOSE std::cout << " * Iteration " << (i + 1) << " *" << std::endl; #endif - sizing.calc_sizing_map(); + if (i < 2) + sizing.calc_sizing_map(); if(do_split) remesher.split_long_edges(sizing); if(do_collapse)