From c4ec0ddae9aca3027c8f9cbcd96e7e0d0a66f57e Mon Sep 17 00:00:00 2001 From: "qing.zhang" Date: Fri, 23 Dec 2022 16:53:29 +0800 Subject: [PATCH] ENH: put the seam on invisible line of modifier Signed-off-by: qing.zhang Change-Id: Ib16de93b26e96902ce2e0d844b78d0cc680638a4 --- src/libslic3r/GCode/SeamPlacer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/GCode/SeamPlacer.cpp b/src/libslic3r/GCode/SeamPlacer.cpp index 1c9ecda83..c333abfe4 100644 --- a/src/libslic3r/GCode/SeamPlacer.cpp +++ b/src/libslic3r/GCode/SeamPlacer.cpp @@ -467,6 +467,8 @@ void process_perimeter_polygon( if (orig_point) { Vec3f pos_of_next = orig_polygon_points.empty() ? first : orig_polygon_points.front(); float distance_to_next = (position - pos_of_next).norm(); + if (distance_to_next > perimeter.flow_width * perimeter.flow_width * 4) + oversampled_points.push((position + pos_of_next) / 2); if (global_model_info.is_enforced(position, distance_to_next)) { Vec3f vec_to_next = (pos_of_next - position).normalized(); float step_size = SeamPlacer::enforcer_oversampling_distance;