mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 23:53:56 -06:00
Fixed missing default for BuildVolume
This commit is contained in:
parent
3523b709c4
commit
ea53709481
1 changed files with 2 additions and 1 deletions
|
@ -129,12 +129,13 @@ class BuildVolume(SceneNode):
|
||||||
new_point = Vector(self._clamp(point[0], min_w, max_w), disallowed_area_height, self._clamp(point[1], min_d, max_d))
|
new_point = Vector(self._clamp(point[0], min_w, max_w), disallowed_area_height, self._clamp(point[1], min_d, max_d))
|
||||||
mb.addFace(first, previous_point, new_point, color = color)
|
mb.addFace(first, previous_point, new_point, color = color)
|
||||||
previous_point = new_point
|
previous_point = new_point
|
||||||
|
|
||||||
# Find the largest disallowed area to exclude it from the maximum scale bounds.
|
# Find the largest disallowed area to exclude it from the maximum scale bounds.
|
||||||
# This is a very nasty hack. This pretty much only works for UM machines. This disallowed area_size needs
|
# This is a very nasty hack. This pretty much only works for UM machines. This disallowed area_size needs
|
||||||
# A -lot- of rework at some point in the future: TODO
|
# A -lot- of rework at some point in the future: TODO
|
||||||
if numpy.min(points[:, 1]) >= 0: # This filters out all areas that have points to the left of the centre. This is done to filter the skirt area.
|
if numpy.min(points[:, 1]) >= 0: # This filters out all areas that have points to the left of the centre. This is done to filter the skirt area.
|
||||||
size = abs(numpy.max(points[:, 1]) - numpy.min(points[:, 1]))
|
size = abs(numpy.max(points[:, 1]) - numpy.min(points[:, 1]))
|
||||||
|
else:
|
||||||
|
size = 0
|
||||||
disallowed_area_size = max(size, disallowed_area_size)
|
disallowed_area_size = max(size, disallowed_area_size)
|
||||||
|
|
||||||
self._disallowed_area_mesh = mb.getData()
|
self._disallowed_area_mesh = mb.getData()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue