mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:19:01 +08:00
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:
parent
5ddc1d9d71
commit
98089e702c
@ -554,15 +554,15 @@ class BuildVolume(SceneNode):
|
|||||||
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],
|
||||||
[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 + offset_x, half_machine_depth - border_size + offset_y],
|
||||||
[-half_machine_width + border_size, half_machine_depth - border_size]
|
[-half_machine_width + border_size + offset_x, half_machine_depth - border_size + offset_y]
|
||||||
], numpy.float32)))
|
], numpy.float32)))
|
||||||
if border_size + offset_y > 0:
|
if border_size + offset_y > 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],
|
||||||
[-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 + offset_x, -half_machine_depth + border_size + offset_y],
|
||||||
[half_machine_width - border_size, -half_machine_depth + border_size]
|
[half_machine_width - border_size + offset_x, -half_machine_depth + border_size + offset_y]
|
||||||
], numpy.float32)))
|
], numpy.float32)))
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user