mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 02:29:04 +08:00
Add safety offset before search for overhangs
Prevent numerical instability => supports on the vertical wall
This commit is contained in:
parent
7c4396446c
commit
fff42fb53d
@ -408,7 +408,7 @@ Points sample_overhangs(const LayerPart& part, double dist2) {
|
||||
// Collect previous expolygons by links collected in loop before
|
||||
ExPolygons prev_shapes = get_shapes(part.prev_parts);
|
||||
assert(!prev_shapes.empty());
|
||||
ExPolygons overhangs = diff_ex(shape, prev_shapes);
|
||||
ExPolygons overhangs = diff_ex(shape, prev_shapes, ApplySafetyOffset::Yes);
|
||||
if (overhangs.empty()) // above part is smaller in whole contour
|
||||
return {};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user