better bisection

This commit is contained in:
Laurent Rineau 2025-12-02 16:51:09 +01:00
parent 7aa81c4505
commit 2d56c7bfe6
1 changed files with 8 additions and 0 deletions

View File

@ -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;
};