From 2ea1f875f07c68d9531ec384a7e1eb39a8b28362 Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Mon, 29 Jan 2024 09:57:19 +0100 Subject: [PATCH] Fix printing rafts-holes in monotonic order CURA-11438 --- src/FffGcodeWriter.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/FffGcodeWriter.cpp b/src/FffGcodeWriter.cpp index bbb4b7c10c..615f338ddc 100644 --- a/src/FffGcodeWriter.cpp +++ b/src/FffGcodeWriter.cpp @@ -983,24 +983,7 @@ void FffGcodeWriter::processRaft(const SliceDataStorage& storage) raft_outline_path = raft_outline_path.difference(storage.primeTower.getOuterPoly(layer_nr)); } - std::vector 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,