mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 02:29:03 +08:00
Update FillRectilinear.cpp
Changes cubic infill so that it forms closed parallelepiped cells and infill walls are flat.
This commit is contained in:
parent
04b59affce
commit
f64e7bc331
@ -525,7 +525,7 @@ void FillCubic::_fill_surface_single(
|
||||
direction_t direction2 = direction;
|
||||
|
||||
const coord_t range = scale_(this->min_spacing / this->density);
|
||||
const coord_t x_shift = abs(( (coord_t)(scale_(this->z) + range) % (coord_t)(range * 2)) - range);
|
||||
const coord_t x_shift = (coord_t)(scale_(this->z) + range) % (coord_t)(range*3);
|
||||
|
||||
fill2._fill_single_direction(expolygon, direction2, -x_shift, out);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user