FIX: remove gap btw internal bridge and inner wall

Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: I7223cedb4ab5394b370d8e413dbbf478b9928c42
(cherry picked from commit be4daaf6fc5428b51b239c5692d1735d4e47b1f6)
This commit is contained in:
yifan.wu 2022-11-09 17:45:58 +08:00 committed by Lane.Wei
parent aa1bd63d61
commit f258da6add

View file

@ -1642,6 +1642,10 @@ void PrintObject::bridge_over_infill()
to_bridge_pp = intersection(to_bridge_pp, lower_internal);
}
// BBS: expand to make avoid gap between bridge and inner wall
to_bridge_pp = expand(to_bridge_pp, bridge_flow.scaled_width());
to_bridge_pp = intersection(to_bridge_pp, internal_solid);
// there's no point in bridging too thin/short regions
//FIXME Vojtech: The offset2 function is not a geometric offset,
// therefore it may create 1) gaps, and 2) sharp corners, which are outside the original contour.