From e3f5c6fe15f8baf31cbe3c1b93954b1caf371d34 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Mon, 14 Apr 2025 12:07:59 +0800 Subject: [PATCH] ENH:Modify the accuracy of determining whether the volume is above or below the cutting plane jira: none Change-Id: I4b4b60f1bf4d26e037e6e084fae569f3fb75be41 --- src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp b/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp index c0f3e0af8..c280e32fc 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp @@ -2856,7 +2856,7 @@ PartSelection::PartSelection( for (const Vec3f &v : volume->mesh().its.vertices) { double p = (v - pos).dot(norm); - if (std::abs(p) > EPSILON) { + if (std::abs(p) > 0.01) { // 0.01 mm is enough m_cut_parts[i].is_up_part = p > 0.; break; }