Increase the offset from 37838be to fix some more problematic cases

supermerill/SuperSlicer#1641
This commit is contained in:
supermerill 2021-10-14 11:27:27 +02:00 committed by supermerill
parent 462e1f06f1
commit 1f48f32a61

View File

@ -606,7 +606,7 @@ ClipperLib::PolyTree _clipper_do_pl(const ClipperLib::ClipType clipType, const P
coord_t lasty = 0;
for (ClipperLib::IntPoint& pt : path) {
if (lasty == pt.Y) {
pt.Y+=1;
pt.Y+=5; //min is 3 on a certain exemple. Using 5 to have some security
bad_y.insert(pt.Y);
}
lasty = pt.Y;
@ -637,7 +637,7 @@ ClipperLib::PolyTree _clipper_do_pl(const ClipperLib::ClipType clipType, const P
to_check.pop_back();
for (ClipperLib::IntPoint& pt : node->Contour) {
if (bad_y.find(pt.Y) != bad_y.end()) {
pt.Y-=1;
pt.Y-=5;
}
}
to_check.insert(to_check.end(), node->Childs.begin(), node->Childs.end());