mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Too high objects (in one at a time) are now greyed out
CURA-972
This commit is contained in:
parent
41d00af345
commit
f05eaf6d9c
1 changed files with 5 additions and 1 deletions
|
@ -60,12 +60,16 @@ class PlatformPhysics:
|
||||||
|
|
||||||
build_volume_bounding_box = copy.deepcopy(self._build_volume.getBoundingBox())
|
build_volume_bounding_box = copy.deepcopy(self._build_volume.getBoundingBox())
|
||||||
build_volume_bounding_box.setBottom(-9001) # Ignore intersections with the bottom
|
build_volume_bounding_box.setBottom(-9001) # Ignore intersections with the bottom
|
||||||
|
node._outside_buildarea = False
|
||||||
|
|
||||||
# Mark the node as outside the build volume if the bounding box test fails.
|
# Mark the node as outside the build volume if the bounding box test fails.
|
||||||
if build_volume_bounding_box.intersectsBox(bbox) != AxisAlignedBox.IntersectionResult.FullIntersection:
|
if build_volume_bounding_box.intersectsBox(bbox) != AxisAlignedBox.IntersectionResult.FullIntersection:
|
||||||
node._outside_buildarea = True
|
node._outside_buildarea = True
|
||||||
else:
|
else:
|
||||||
node._outside_buildarea = False
|
# When printing one at a time too high objects are not printable.
|
||||||
|
if Application.getInstance().getMachineManager().getWorkingProfile().getSettingValue("print_sequence") == "one_at_a_time":
|
||||||
|
if node.getBoundingBox().height > Application.getInstance().getMachineManager().getWorkingProfile().getSettingValue("gantry_height"):
|
||||||
|
node._outside_buildarea = True
|
||||||
|
|
||||||
# Move it downwards if bottom is above platform
|
# Move it downwards if bottom is above platform
|
||||||
move_vector = Vector()
|
move_vector = Vector()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue