mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
Reverts an inadverent bug introduced in 4460b5ce50
This commit is contained in:
parent
1070f0c0af
commit
b116fe287c
1 changed files with 9 additions and 5 deletions
|
@ -120,17 +120,21 @@ PerimeterGenerator::process()
|
||||||
// from the line width of the infill?
|
// from the line width of the infill?
|
||||||
coord_t distance = (i == 1) ? ext_pspacing2 : pspacing;
|
coord_t distance = (i == 1) ? ext_pspacing2 : pspacing;
|
||||||
|
|
||||||
|
if (this->config->thin_walls) {
|
||||||
//FIXME Vojtech: Why there is a special case for the thin walls?
|
// This path will ensure, that the perimeters do not overfill, as in
|
||||||
// Gap fill is active all the time anyway and this is not the outer perimeter.
|
// prusa3d/Slic3r GH #32, but with the cost of rounding the perimeters
|
||||||
// if (this->config->thin_walls) {
|
// excessively, creating gaps, which then need to be filled in by the not very
|
||||||
if (false) {
|
// 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…
Add table
Add a link
Reference in a new issue