From 535faeb297a375e4df436483cbe3ea33e8a4664d Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 28 Jun 2024 15:08:02 +0200 Subject: [PATCH] Mesh: Use a lower threshold for the MeshPart_SectionByPlane command See forum: https://forum.freecad.org/viewtopic.php?t=88734 --- src/Mod/MeshPart/Gui/Command.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/MeshPart/Gui/Command.cpp b/src/Mod/MeshPart/Gui/Command.cpp index 9e3b6cb0c5..1934ad5b25 100644 --- a/src/Mod/MeshPart/Gui/Command.cpp +++ b/src/Mod/MeshPart/Gui/Command.cpp @@ -230,7 +230,8 @@ void CmdMeshPartSection::activated(int) for (auto it : docObj) { const Mesh::MeshObject* mesh = static_cast(it)->Mesh.getValuePtr(); std::vector polylines; - mesh->crossSections(sections, polylines); + const float minSectionLength = 1e-7F; + mesh->crossSections(sections, polylines, minSectionLength); for (const auto& it2 : polylines) { for (const auto& it3 : it2) {