mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:55:53 +08:00
half_machine_width should be halved
Shoot me before I do any further damage, please. Contributes to issue CURA-2625.
This commit is contained in:
parent
98089e702c
commit
18b2834091
@ -438,6 +438,7 @@ class BuildVolume(SceneNode):
|
|||||||
self._disallowed_areas = []
|
self._disallowed_areas = []
|
||||||
for extruder_id in result_areas:
|
for extruder_id in result_areas:
|
||||||
self._disallowed_areas.extend(result_areas[extruder_id])
|
self._disallowed_areas.extend(result_areas[extruder_id])
|
||||||
|
print("FINAL:", self._disallowed_areas)
|
||||||
|
|
||||||
## Computes the disallowed areas for objects that are printed with print
|
## Computes the disallowed areas for objects that are printed with print
|
||||||
# features.
|
# 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.
|
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.
|
#Add the border around the edge of the build volume.
|
||||||
half_machine_width = self._global_container_stack.getProperty("machine_width", "value")
|
half_machine_width = self._global_container_stack.getProperty("machine_width", "value") / 2
|
||||||
half_machine_depth = self._global_container_stack.getProperty("machine_depth", "value")
|
half_machine_depth = self._global_container_stack.getProperty("machine_depth", "value") / 2
|
||||||
if border_size + offset_x > 0:
|
if border_size + offset_x > 0:
|
||||||
result[extruder_id].append(Polygon(numpy.array([
|
result[extruder_id].append(Polygon(numpy.array([
|
||||||
[-half_machine_width, -half_machine_depth],
|
[-half_machine_width, -half_machine_depth],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user