Skip to content

Commit

Permalink
Fix printing rafts-holes in monotonic order (#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton authored Jan 30, 2024
2 parents 8085fd0 + 2ea1f87 commit 9fae10d
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 @@ -987,24 +987,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 9fae10d

Please sign in to comment.