Merge branch 'main' into dev/h2d-2

# Conflicts:
#	src/slic3r/GUI/PartPlate.hpp
This commit is contained in:
Noisyfox
2025-10-14 19:43:33 +08:00
72 changed files with 276 additions and 270 deletions

View File

@@ -1019,7 +1019,7 @@ static ExPolygons inner_offset(const ExPolygons &ex_polygons, double offset_dis)
// remove too small holes from the ex_poly
for (ExPolygon &ex_poly : ex_poly_result) {
for (auto iter = ex_poly.holes.begin(); iter != ex_poly.holes.end();) {
auto out_offset_holes = offset(*iter, scale_(1.0f));
auto out_offset_holes = offset(*iter, scale_(0.1f));
if (out_offset_holes.empty()) {
iter = ex_poly.holes.erase(iter);
} else {

View File

@@ -153,7 +153,8 @@ struct PerExtruderAdjustments
assert(line.time_max >= 0.f && line.time_max < FLT_MAX);
line.slowdown = true;
line.time = line.time_max;
line.feedrate = line.length / line.time;
if (line.time > 0.f)
line.feedrate = line.length / line.time;
}
time_total += line.time;
}
@@ -169,7 +170,8 @@ struct PerExtruderAdjustments
if (line.adjustable(slowdown_external_perimeters)) {
line.slowdown = true;
line.time = std::min(line.time_max, line.time * factor);
line.feedrate = line.length / line.time;
if (line.time > 0.f)
line.feedrate = line.length / line.time;
}
time_total += line.time;
}