Skip to content

Commit

Permalink
Fix printing rafts-holes in monotonic order
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Jan 29, 2024
1 parent 94543ac commit 2ea1f87
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,24 +983,7 @@ void FffGcodeWriter::processRaft(const SliceDataStorage& storage)
raft_outline_path = raft_outline_path.difference(storage.primeTower.getOuterPoly(layer_nr));
}

std::vector<Polygons> raft_islands;
if (monotonic)
{
// When using monotonic infill, process islands separately otherwise multiple rafts
// will be printed in parallel in a global monotonic order, which doesn't look good
for (const PolygonRef raft_island : raft_outline_path)
{
Polygons island;
island.add(raft_island);
raft_islands.emplace_back(island);
}
}
else
{
raft_islands.emplace_back(raft_outline_path);
}

for (const Polygons raft_island : raft_islands)
for (const Polygons raft_island : raft_outline_path.splitIntoParts())
{
Infill infill_comp(
EFillMethod::ZIG_ZAG,
Expand Down

0 comments on commit 2ea1f87

Please sign in to comment.