From 2d56c7bfe66e7def89544270505d12a57ad7a29d Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 2 Dec 2025 16:51:09 +0100 Subject: [PATCH] better bisection --- .../test/Constrained_triangulation_3/cdt_3_from_off.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Constrained_triangulation_3/test/Constrained_triangulation_3/cdt_3_from_off.cpp b/Constrained_triangulation_3/test/Constrained_triangulation_3/cdt_3_from_off.cpp index 0f53707a145..5b5b8d146db 100644 --- a/Constrained_triangulation_3/test/Constrained_triangulation_3/cdt_3_from_off.cpp +++ b/Constrained_triangulation_3/test/Constrained_triangulation_3/cdt_3_from_off.cpp @@ -748,6 +748,14 @@ int bisect_errors(Mesh mesh, CDT_options options) { CGAL::Euler::remove_face(halfedge(*it, m), m); } + std::stringstream ss; + ss.precision(17); + ss << m; + ss.seekg(0); + Mesh simplified_mesh; + ss >> simplified_mesh; + m = std::move(simplified_mesh); + return m.is_valid(true); return true; };