Also offset inner corners of the Y-borders

These should coincide with the inner corners of the X-borders.

Contributes to issue CURA-2625.
This commit is contained in:
Ghostkeeper 2016-11-14 11:28:32 +01:00
parent 5ddc1d9d71
commit 98089e702c
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -554,15 +554,15 @@ class BuildVolume(SceneNode):
result[extruder_id].append(Polygon(numpy.array([
[-half_machine_width, half_machine_depth],
[half_machine_width, half_machine_depth],
[half_machine_width - border_size, half_machine_depth - border_size],
[-half_machine_width + border_size, half_machine_depth - border_size]
[half_machine_width - border_size + offset_x, half_machine_depth - border_size + offset_y],
[-half_machine_width + border_size + offset_x, half_machine_depth - border_size + offset_y]
], numpy.float32)))
if border_size + offset_y > 0:
result[extruder_id].append(Polygon(numpy.array([
[half_machine_width, -half_machine_depth],
[-half_machine_width, -half_machine_depth],
[-half_machine_width + border_size, -half_machine_depth + border_size],
[half_machine_width - border_size, -half_machine_depth + border_size]
[-half_machine_width + border_size + offset_x, -half_machine_depth + border_size + offset_y],
[half_machine_width - border_size + offset_x, -half_machine_depth + border_size + offset_y]
], numpy.float32)))
return result