mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 12:35:55 +08:00
Reverts an inadverent bug introduced in 4460b5ce50
Conflicts:
xs/src/libslic3r/PerimeterGenerator.cpp
This commit is contained in:
parent
0c63bc0f83
commit
9ed127274e
@ -121,12 +121,20 @@ PerimeterGenerator::process()
|
|||||||
coord_t distance = (i == 1) ? ext_pspacing2 : pspacing;
|
coord_t distance = (i == 1) ? ext_pspacing2 : pspacing;
|
||||||
|
|
||||||
if (this->config->thin_walls) {
|
if (this->config->thin_walls) {
|
||||||
|
// This path will ensure, that the perimeters do not overfill, as in
|
||||||
|
// prusa3d/Slic3r GH #32, but with the cost of rounding the perimeters
|
||||||
|
// excessively, creating gaps, which then need to be filled in by the not very
|
||||||
|
// reliable gap fill algorithm.
|
||||||
|
// Also the offset2(perimeter, -x, x) may sometimes lead to a perimeter, which is larger than
|
||||||
|
// the original.
|
||||||
offsets = offset2(
|
offsets = offset2(
|
||||||
last,
|
last,
|
||||||
-(distance + min_spacing/2 - 1),
|
-(distance + min_spacing/2 - 1),
|
||||||
+(min_spacing/2 - 1)
|
+(min_spacing/2 - 1)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
// If "detect thin walls" is not enabled, this paths will be entered, which
|
||||||
|
// leads to overflows, as in prusa3d/Slic3r GH #32
|
||||||
offsets = offset(
|
offsets = offset(
|
||||||
last,
|
last,
|
||||||
-distance
|
-distance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user