From ea3ff4227839486a4f185ee486a4416e6605eaea Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Mon, 22 Apr 2024 15:28:10 +0200 Subject: [PATCH] Unify and heal after add bouning box (SPE-2271, #12627) --- src/libslic3r/Emboss.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libslic3r/Emboss.cpp b/src/libslic3r/Emboss.cpp index 6af848f465..4f6fb9d963 100644 --- a/src/libslic3r/Emboss.cpp +++ b/src/libslic3r/Emboss.cpp @@ -56,6 +56,7 @@ namespace { // for debug purpose only // NOTE: check scale when store svg !! #include "libslic3r/SVG.hpp" // for visualize_heal +Points get_unique_intersections(const Slic3r::IntersectionsLines &intersections); // fast forward declaration static std::string visualize_heal_svg_filepath = "C:/data/temp/heal.svg"; void visualize_heal(const std::string &svg_filepath, const ExPolygons &expolygons) { @@ -639,6 +640,10 @@ bool heal_dupl_inter(ExPolygons &shape, unsigned max_iteration) expoly = create_bounding_rect({expoly}); } } + + // After insert bounding box unify and heal + shape = union_ex(shape); + heal_dupl_inter(shape, 1); return false; }