From 3e42d16f622985c840c9f4446917ffde328f62be Mon Sep 17 00:00:00 2001 From: Pavel Mikus Date: Wed, 29 Mar 2023 18:32:41 +0200 Subject: [PATCH] minor parameter changes --- src/libslic3r/GCode/ExtrusionProcessor.hpp | 7 +++---- src/libslic3r/SupportSpotsGenerator.hpp | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/libslic3r/GCode/ExtrusionProcessor.hpp b/src/libslic3r/GCode/ExtrusionProcessor.hpp index 98febf6098..bf59543dd5 100644 --- a/src/libslic3r/GCode/ExtrusionProcessor.hpp +++ b/src/libslic3r/GCode/ExtrusionProcessor.hpp @@ -299,13 +299,12 @@ public: for (ExtendedPoint& ep : extended_points) { // We are going to enforce slowdown by increasing the point distance. The overhang speed is based on signed distance from - // the prev layer, where 0 means fully overlapping extrusions and thus no slowdown, while extrusion_width and more means full overhang, thus full slowdown. - // However, for curling, we take unsinged distance from the curled lines and artifically modifiy the distance + // the prev layer, where 0 means fully overlapping extrusions and thus no slowdown, while extrusion_width and more means full overhang, + // thus full slowdown. However, for curling, we take unsinged distance from the curled lines and artifically modifiy the distance float distance_from_curled = prev_curled_extrusions[current_object].distance_from_lines(ep.position); - ep.distance = std::max(ep.distance, path.width - distance_from_curled); + ep.distance = std::max(ep.distance, (path.width - distance_from_curled)); } - std::vector processed_points; processed_points.reserve(extended_points.size()); for (size_t i = 0; i < extended_points.size(); i++) { diff --git a/src/libslic3r/SupportSpotsGenerator.hpp b/src/libslic3r/SupportSpotsGenerator.hpp index c673fc21fb..a946159b98 100644 --- a/src/libslic3r/SupportSpotsGenerator.hpp +++ b/src/libslic3r/SupportSpotsGenerator.hpp @@ -42,7 +42,7 @@ struct Params BrimType brim_type; const float brim_width; - const std::pair malformation_distance_factors = std::pair { 0.3, 0.9 }; + const std::pair malformation_distance_factors = std::pair { 0.2, 1.1 }; const float max_curled_height_factor = 10.0f; const float curling_tolerance_limit = 0.1f;