BUG-FIX avoid crossing perimeters ingonore holes <=2mm (#10942)
Some checks are pending
Build all / Build All (push) Waiting to run
Build all / Flatpak (push) Waiting to run

Fix avoid crossing perimeters 2
This commit is contained in:
Rodrigo Faselli 2025-10-13 08:41:07 -03:00 committed by GitHub
parent 9c1c439cfc
commit ac75c69ddf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {