Support threshold overlap (#6606)

* Support threshold overlap

* Update tooltip
This commit is contained in:
Vovodroid
2025-01-23 12:01:38 +02:00
committed by GitHub
parent fb9d5df08f
commit 49a25a75c8
9 changed files with 23 additions and 8 deletions

View File

@@ -1517,8 +1517,8 @@ static inline ExPolygons detect_overhangs(
(threshold_rad > 0. ?
// Overhang defined by an angle.
float(scale_(lower_layer.height / tan(threshold_rad))) :
// Overhang defined by half the extrusion width.
0.5f * fw);
// Overhang defined by overlap.
fw - float(scale_(object_config.support_threshold_overlap.get_abs_value(unscale_(fw)))));
// Overhang polygons for this layer and region.
Polygons diff_polygons;
Polygons layerm_polygons = to_polygons(layerm->slices.surfaces);