Raft thickness lowers the build volume.

CURA-1707
Now adding more visuals for better UX.
This commit is contained in:
Jack Ha 2016-07-18 16:02:24 +02:00
parent 56efb92f3e
commit b3837fbafd
4 changed files with 42 additions and 10 deletions

View file

@ -40,6 +40,7 @@ class PlatformPhysics:
return
root = self._controller.getScene().getRoot()
for node in BreadthFirstIterator(root):
if node is root or type(node) is not SceneNode or node.getBoundingBox() is None:
continue
@ -58,10 +59,7 @@ class PlatformPhysics:
move_vector = Vector()
if not (node.getParent() and node.getParent().callDecoration("isGroup")): #If an object is grouped, don't move it down
z_offset = node.callDecoration("getZOffset") if node.getDecorator(ZOffsetDecorator.ZOffsetDecorator) else 0
if bbox.bottom > 0:
move_vector = move_vector.set(y=-bbox.bottom + z_offset)
elif bbox.bottom < z_offset:
move_vector = move_vector.set(y=(-bbox.bottom) - z_offset)
move_vector = move_vector.set(y=-bbox.bottom + z_offset)
# If there is no convex hull for the node, start calculating it and continue.
if not node.getDecorator(ConvexHullDecorator):