diff options
author | j.delarago <joeydelarago@gmail.com> | 2022-04-29 16:13:32 +0300 |
---|---|---|
committer | j.delarago <joeydelarago@gmail.com> | 2022-04-29 16:13:32 +0300 |
commit | 304a63c12299a9b459c556986ac913b22eea6654 (patch) | |
tree | addd0af9baaa67679ed02303c633ed39e3970a7c | |
parent | fdc878f944726257dbf3f5e8db3062c4f6884319 (diff) |
All ironing lines should be ironing_line_spacing apart.
Since we are using infill code to calculate this, we were offseting the concertric polygons by infill_line_width - line_distance.
In the case of ironing we should have infill_line_width == line_distance == ironing_line_spacing
This way our paths are always ironing_line_spacing apart.
This bug was caused by the offset being too large because we were passing in the line_width (0.4) to infill_line_width while
our line_distance was our ironing_line_spacing (0.1) . This caused the insets to be offset by an extra 0.3 (line_width - ironing_line_spacing)
CURA-9158
-rw-r--r-- | src/TopSurface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TopSurface.cpp b/src/TopSurface.cpp index 18b691866..3dee48fa1 100644 --- a/src/TopSurface.cpp +++ b/src/TopSurface.cpp @@ -85,7 +85,7 @@ bool TopSurface::ironing(const SliceDataStorage& storage, const SliceMeshStorage } Polygons ironed_areas = areas.offset(ironing_inset); - Infill infill_generator(pattern, zig_zaggify_infill, connect_polygons, ironed_areas, line_width, line_spacing, infill_overlap, infill_multiplier, direction, layer.z - 10, shift, max_resolution, max_deviation, wall_line_count, infill_origin, skip_line_stitching); + Infill infill_generator(pattern, zig_zaggify_infill, connect_polygons, ironed_areas, line_spacing, line_spacing, infill_overlap, infill_multiplier, direction, layer.z - 10, shift, max_resolution, max_deviation, wall_line_count, infill_origin, skip_line_stitching); std::vector<VariableWidthLines> ironing_paths; Polygons ironing_polygons; Polygons ironing_lines; |