mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-27 07:12:04 +08:00
parent
c08429cb78
commit
22b2d4692b
@ -2778,9 +2778,9 @@ namespace Slic3r {
|
|||||||
//apply hole threshold cutoff
|
//apply hole threshold cutoff
|
||||||
double convex_delta_adapted = convex_delta;
|
double convex_delta_adapted = convex_delta;
|
||||||
double area = -hole.area();
|
double area = -hole.area();
|
||||||
if (area > max_hole_area * 4) {
|
if (area > max_hole_area * 4 && max_hole_area > 0) {
|
||||||
convex_delta_adapted = not_convex_delta;
|
convex_delta_adapted = not_convex_delta;
|
||||||
} else if (area > max_hole_area) {
|
} else if (area > max_hole_area && max_hole_area > 0) {
|
||||||
// not a hard threshold, to avoid artefacts on slopped holes.
|
// not a hard threshold, to avoid artefacts on slopped holes.
|
||||||
double percent = (max_hole_area * 4 - area) / (max_hole_area * 3);
|
double percent = (max_hole_area * 4 - area) / (max_hole_area * 3);
|
||||||
convex_delta_adapted = convex_delta * percent + (1 - percent) * not_convex_delta;
|
convex_delta_adapted = convex_delta * percent + (1 - percent) * not_convex_delta;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user