Polygon Mesh Processing: Fix CGAL_assertion_msg

This commit is contained in:
Andreas Fabri 2022-11-28 14:05:59 +00:00
parent ba40f768b5
commit 0b56297ea2
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
#define CGAL_NO_ASSERTIONS
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Surface_mesh.h> #include <CGAL/Surface_mesh.h>
#include <CGAL/Polygon_mesh_processing/remesh.h> #include <CGAL/Polygon_mesh_processing/remesh.h>

View File

@ -328,7 +328,7 @@ namespace internal {
halfedge_status_pmap_ = get(CGAL::dynamic_halfedge_property_t<Halfedge_status>(), halfedge_status_pmap_ = get(CGAL::dynamic_halfedge_property_t<Halfedge_status>(),
pmesh); pmesh);
CGAL_assertion_code(input_mesh_is_valid_ = CGAL::is_valid_polygon_mesh(pmesh)); CGAL_assertion_code(input_mesh_is_valid_ = CGAL::is_valid_polygon_mesh(pmesh));
CGAL_warning_msg(input_mesh_is_valid_, CGAL_assertion_msg(input_mesh_is_valid_,
"The input mesh is not a valid polygon mesh. " "The input mesh is not a valid polygon mesh. "
"It could lead PMP::isotropic_remeshing() to fail."); "It could lead PMP::isotropic_remeshing() to fail.");
} }