From c6c6f361dab23704c9fbc8f0efb00d20ff92aa4e Mon Sep 17 00:00:00 2001 From: PavelMikus Date: Mon, 27 Mar 2023 14:11:38 +0200 Subject: [PATCH] remove infill lines which are snapped to the perimeter from anchors - they confuse the angle selection algorithm --- src/libslic3r/PrintObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/PrintObject.cpp b/src/libslic3r/PrintObject.cpp index 493bb90700..61067ed18d 100644 --- a/src/libslic3r/PrintObject.cpp +++ b/src/libslic3r/PrintObject.cpp @@ -2107,7 +2107,7 @@ void PrintObject::bridge_over_infill() total_fill_area = closing(total_fill_area, SCALED_EPSILON); expansion_area = closing(expansion_area, SCALED_EPSILON); expansion_area = intersection(expansion_area, deep_infill_area); - Polylines anchors = intersection_pl(infill_lines[lidx - 1], expansion_area); + Polylines anchors = intersection_pl(infill_lines[lidx - 1], shrink(expansion_area, spacing)); #ifdef DEBUG_BRIDGE_OVER_INFILL debug_draw(std::to_string(lidx) + "_" + std::to_string(cluster_idx) + "_" + std::to_string(job_idx) + "_" +