diff options
author | Jack Ha <j.ha@ultimaker.com> | 2016-07-25 18:09:06 +0300 |
---|---|---|
committer | Jack Ha <j.ha@ultimaker.com> | 2016-07-25 18:09:06 +0300 |
commit | d82249e26022059b455704ddf0a44353f89a1620 (patch) | |
tree | 5e9546d5770d25fb54afc6972e637f509bd44a06 | |
parent | d77f6e86e4f31b18d0c5e0415ded41435c2a566a (diff) |
Fix for one-at-a-time. CURA-1707
-rw-r--r-- | cura/ConvexHullDecorator.py | 3 | ||||
-rw-r--r-- | cura/ConvexHullNode.py | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/cura/ConvexHullDecorator.py b/cura/ConvexHullDecorator.py index 348a747f9c..2ba0047cd4 100644 --- a/cura/ConvexHullDecorator.py +++ b/cura/ConvexHullDecorator.py @@ -15,12 +15,13 @@ class ConvexHullDecorator(SceneNodeDecorator): self._convex_hull_node = None self._init2DConvexHullCache() + self._global_stack = None + self._raft_thickness = 0.0 # For raft thickness, DRY self._build_volume = Application.getInstance().getBuildVolume() self._build_volume.raftThicknessChanged.connect(self._onChanged) - self._global_stack = None Application.getInstance().globalContainerStackChanged.connect(self._onGlobalStackChanged) Application.getInstance().getController().toolOperationStarted.connect(self._onChanged) Application.getInstance().getController().toolOperationStopped.connect(self._onChanged) diff --git a/cura/ConvexHullNode.py b/cura/ConvexHullNode.py index 53bee40a8e..f73db2a597 100644 --- a/cura/ConvexHullNode.py +++ b/cura/ConvexHullNode.py @@ -48,7 +48,9 @@ class ConvexHullNode(SceneNode): self.setMeshData(hull_mesh) convex_hull_head = self._node.callDecoration("getConvexHullHead") if convex_hull_head: - self._convex_hull_head_mesh = self.createHullMesh(convex_hull_head.getPoints()) + convex_hull_head_builder = MeshBuilder() + convex_hull_head_builder.addConvexPolygon(convex_hull_head.getPoints(), self._mesh_height-thickness) + self._convex_hull_head_mesh = convex_hull_head_builder.build() def getHull(self): return self._hull |