fix gaps between walls and sparse infill, issue #12304 (#12770)

This commit is contained in:
Yevhen
2026-04-24 06:36:00 -04:00
committed by GitHub
parent b30470a714
commit 09d5c92f6a

View File

@@ -808,8 +808,10 @@ void split_solid_surface(size_t layer_id, const SurfaceFill &fill, ExPolygons &n
return;
}
// Expand the normal infills a little bit to avoid gaps between normal and narrow infills
normal_infill = intersection_ex(offset_ex(normal_fill_areas_ex, scaled_spacing * 0.1), fill.expolygons);
// Expand the normal infills to avoid gaps between normal and narrow infills.
// The inner_area was shrunk by scaled_spacing * 0.5, so we need to expand
// by at least that amount to ensure proper coverage and avoid gaps.
normal_infill = intersection_ex(offset_ex(normal_fill_areas_ex, scaled_spacing * 0.5), fill.expolygons);
narrow_infill = narrow_fill_areas;
#ifdef DEBUG_SURFACE_SPLIT