From c425e675bafc824bd04e7364035e5502411e49c4 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 7 Feb 2024 12:15:55 +0100 Subject: [PATCH] Mesh: fixes #11985: 3MF export to Prusa with clone = open edge warnings on clone See https://forum.freecad.org/viewtopic.php?p=738731#p738731 --- src/Mod/MeshPart/App/Mesher.cpp | 2 +- src/Mod/Part/App/TopoShape.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Mod/MeshPart/App/Mesher.cpp b/src/Mod/MeshPart/App/Mesher.cpp index a67ff06a3f..1cf051a96a 100644 --- a/src/Mod/MeshPart/App/Mesher.cpp +++ b/src/Mod/MeshPart/App/Mesher.cpp @@ -160,7 +160,7 @@ struct Vertex } }; -const double Vertex::deflection = gp::Resolution(); +const double Vertex::deflection = 10 * std::numeric_limits::epsilon(); // ---------------------------------------------------------------------------- diff --git a/src/Mod/Part/App/TopoShape.cpp b/src/Mod/Part/App/TopoShape.cpp index 86664beb21..9ccf4cf1c7 100644 --- a/src/Mod/Part/App/TopoShape.cpp +++ b/src/Mod/Part/App/TopoShape.cpp @@ -3428,8 +3428,7 @@ private: }; } -//const double Vertex::MESH_MIN_PT_DIST = 1.0e-6; -const double MeshVertex::MESH_MIN_PT_DIST = gp::Resolution(); +const double MeshVertex::MESH_MIN_PT_DIST = 10 * std::numeric_limits::epsilon(); void TopoShape::getFacesFromDomains(const std::vector& domains, std::vector& points,