mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Changes required for printing one at a time
This commit is contained in:
parent
1ce7e78685
commit
78ebb13089
5 changed files with 142 additions and 9 deletions
|
@ -5,6 +5,13 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||
def __init__(self):
|
||||
super().__init__()
|
||||
self._convex_hull = None
|
||||
|
||||
# In case of printing all at once this is the same as the convex hull. For one at the time this is the area without the head.
|
||||
self._convex_hull_boundary = None
|
||||
|
||||
# In case of printing all at once this is the same as the convex hull. For one at the time this is area with full head
|
||||
self._convex_hull_head = None
|
||||
|
||||
self._convex_hull_node = None
|
||||
self._convex_hull_job = None
|
||||
settings = Application.getInstance().getActiveMachine()
|
||||
|
@ -23,6 +30,22 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||
def getConvexHull(self):
|
||||
return self._convex_hull
|
||||
|
||||
def getConvexHullHead(self):
|
||||
if not self._convex_hull_head:
|
||||
return self.getConvexHull()
|
||||
return self._convex_hull_head
|
||||
|
||||
def getConvexHullBoundary(self):
|
||||
if not self._convex_hull_boundary:
|
||||
return self.getConvexHull()
|
||||
return self._convex_hull_boundary
|
||||
|
||||
def setConvexHullBoundary(self, hull):
|
||||
self._convex_hull_boundary = hull
|
||||
|
||||
def setConvexHullHead(self, hull):
|
||||
self._convex_hull_head = hull
|
||||
|
||||
def setConvexHull(self, hull):
|
||||
self._convex_hull = hull
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue