From b1adb5571b3b9b0831f726fe80968708620347fa Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 31 Jul 2024 15:56:19 +0200 Subject: [PATCH] When the mesh is known, use its center-point, instead of that of the scene. This could get increasingly inaccurate results with more objects on the buildplate, since the center could be outside of the objects. CURA-12043 --- src/FffGcodeWriter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FffGcodeWriter.cpp b/src/FffGcodeWriter.cpp index 64d52a93a4..669bbfd5d8 100644 --- a/src/FffGcodeWriter.cpp +++ b/src/FffGcodeWriter.cpp @@ -2309,7 +2309,7 @@ bool FffGcodeWriter::processSingleLayerInfill( extruder_nr, z_seam_config, tool_paths, - storage.getModelBoundingBox().flatten().getMiddle()); + mesh.bounding_box.flatten().getMiddle()); added_something |= wall_orderer.addToLayer(); } } @@ -2752,7 +2752,7 @@ bool FffGcodeWriter::processInsets( mesh.settings.get("wall_x_extruder_nr").extruder_nr_, z_seam_config, part.wall_toolpaths, - storage.getModelBoundingBox().flatten().getMiddle()); + mesh.bounding_box.flatten().getMiddle()); added_something |= wall_orderer.addToLayer(); } return added_something; @@ -3178,7 +3178,7 @@ void FffGcodeWriter::processSkinPrintFeature( skin_extruder_nr, z_seam_config, skin_paths, - storage.getModelBoundingBox().flatten().getMiddle()); + mesh.bounding_box.flatten().getMiddle()); added_something |= wall_orderer.addToLayer(); } }