From e9b456c30d2cca82884a5b3eb08716b13b7ab619 Mon Sep 17 00:00:00 2001 From: PavelMikus Date: Thu, 24 Mar 2022 14:55:08 +0100 Subject: [PATCH] update defaults --- src/libslic3r/FDMSupportSpots.cpp | 6 +++--- src/libslic3r/FDMSupportSpots.hpp | 8 ++++---- src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.hpp | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/libslic3r/FDMSupportSpots.cpp b/src/libslic3r/FDMSupportSpots.cpp index 58b0899c64..7232f6375e 100644 --- a/src/libslic3r/FDMSupportSpots.cpp +++ b/src/libslic3r/FDMSupportSpots.cpp @@ -182,9 +182,9 @@ void FDMSupportSpots::find_support_areas() { supporter.visited = true; supporter.group_id = group_id; for (const auto &n : supporter.neighbours) { - if (n < 0) - continue; - supporters.push(n); + if (n >= 0) { + supporters.push(n); + } } } } diff --git a/src/libslic3r/FDMSupportSpots.hpp b/src/libslic3r/FDMSupportSpots.hpp index ca362f89a5..940c9f3a34 100644 --- a/src/libslic3r/FDMSupportSpots.hpp +++ b/src/libslic3r/FDMSupportSpots.hpp @@ -43,10 +43,10 @@ struct Triangle { struct FDMSupportSpotsConfig { float limit_angle_cos { 35.0f * PI / 180.0f }; - float patch_size { 6.0f }; - float patch_spacing { 6.0f }; - float islands_tolerance_distance { 1.0f }; - float max_side_length { 1.0f }; + float patch_size { 1.0f }; // (mm) + float patch_spacing { 2.0f }; // (mm) + float islands_tolerance_distance { 0.3f }; //(mm) + float max_side_length { 1.0f };// (mm) }; struct FDMSupportSpots { diff --git a/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.hpp b/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.hpp index 55bd4395f9..2ef275c9f6 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.hpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.hpp @@ -42,10 +42,10 @@ private: // etc. When language changes, GUI is recreated and this class constructed again, so the change takes effect. std::map m_desc; - float m_smart_support_limit_angle_deg = 35.0f; - float m_smart_support_patch_size = 6.0f; - float m_smart_support_patch_spacing = 6.0f; - float m_smart_support_islands_tolerance = 1.0f; + float m_smart_support_limit_angle_deg = 45.0f; + float m_smart_support_patch_size = 10.0f; //0.1mm + float m_smart_support_patch_spacing = 20.0f; //0.1mm + float m_smart_support_islands_tolerance = 30.0f; //0.01mm };