From 18b2834091255ac9a70d45baea1821327ba1e1a1 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 14 Nov 2016 11:38:47 +0100 Subject: [PATCH] half_machine_width should be halved Shoot me before I do any further damage, please. Contributes to issue CURA-2625. --- cura/BuildVolume.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py index db2b95908b..26bb3aeaa8 100644 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -438,6 +438,7 @@ class BuildVolume(SceneNode): self._disallowed_areas = [] for extruder_id in result_areas: self._disallowed_areas.extend(result_areas[extruder_id]) + print("FINAL:", self._disallowed_areas) ## Computes the disallowed areas for objects that are printed with print # features. @@ -534,8 +535,8 @@ class BuildVolume(SceneNode): result[extruder_id].append(polygon.translate(offset_x, offset_y)) #Compensate for the nozzle offset of this extruder. #Add the border around the edge of the build volume. - half_machine_width = self._global_container_stack.getProperty("machine_width", "value") - half_machine_depth = self._global_container_stack.getProperty("machine_depth", "value") + half_machine_width = self._global_container_stack.getProperty("machine_width", "value") / 2 + half_machine_depth = self._global_container_stack.getProperty("machine_depth", "value") / 2 if border_size + offset_x > 0: result[extruder_id].append(Polygon(numpy.array([ [-half_machine_width, -half_machine_depth],