mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-02 07:10:40 +08:00
Increase the offset from 37838be to fix some more problematic cases
supermerill/SuperSlicer#1641
This commit is contained in:
parent
462e1f06f1
commit
1f48f32a61
@ -606,7 +606,7 @@ ClipperLib::PolyTree _clipper_do_pl(const ClipperLib::ClipType clipType, const P
|
|||||||
coord_t lasty = 0;
|
coord_t lasty = 0;
|
||||||
for (ClipperLib::IntPoint& pt : path) {
|
for (ClipperLib::IntPoint& pt : path) {
|
||||||
if (lasty == pt.Y) {
|
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);
|
bad_y.insert(pt.Y);
|
||||||
}
|
}
|
||||||
lasty = pt.Y;
|
lasty = pt.Y;
|
||||||
@ -637,7 +637,7 @@ ClipperLib::PolyTree _clipper_do_pl(const ClipperLib::ClipType clipType, const P
|
|||||||
to_check.pop_back();
|
to_check.pop_back();
|
||||||
for (ClipperLib::IntPoint& pt : node->Contour) {
|
for (ClipperLib::IntPoint& pt : node->Contour) {
|
||||||
if (bad_y.find(pt.Y) != bad_y.end()) {
|
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());
|
to_check.insert(to_check.end(), node->Childs.begin(), node->Childs.end());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user