Skip to content

Commit

Permalink
Fix issue where part of raft was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Nov 24, 2023
1 parent 5f80ab9 commit 49f8400
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -929,9 +929,37 @@ void FffGcodeWriter::processRaft(const SliceDataStorage& storage)
skip_some_zags,
zag_skip_count,
pocket_size);

std::vector<VariableWidthLines> raft_paths; // Should remain empty, since we have no walls.
infill_comp.generate(raft_paths, raft_polygons, raft_lines, surface_settings, layer_nr, SectionType::ADHESION);
gcode_layer.addLinesByOptimizer(raft_lines, gcode_layer.configs_storage.raft_surface_config, SpaceFillType::Lines, false, 0, 1.0, last_planned_position);

const auto wipe_dist = 0;
const auto spiralize = false;
const auto flow_ratio = 1.0_r;
const auto enable_travel_optimization = false;
const auto always_retract = false;
const auto reverse_order = false;

gcode_layer.addLinesByOptimizer(
raft_lines,
gcode_layer.configs_storage.raft_surface_config,
SpaceFillType::Lines,
enable_travel_optimization,
wipe_dist,
flow_ratio,
last_planned_position
);
gcode_layer.addPolygonsByOptimizer(
raft_polygons,
gcode_layer.configs_storage.raft_surface_config,
ZSeamConfig(),
wipe_dist,
spiralize,
flow_ratio,
always_retract,
reverse_order,
gcode_layer.getLastPlannedPositionOrStartingPosition()
);

raft_polygons.clear();
raft_lines.clear();
Expand Down

0 comments on commit 49f8400

Please sign in to comment.