mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix changed file locations and add missing resource path
This commit is contained in:
parent
7318e3f1a6
commit
f82ed32ef0
3 changed files with 24 additions and 15 deletions
|
@ -4,7 +4,7 @@ from UM.Math.Polygon import Polygon
|
|||
|
||||
import numpy
|
||||
|
||||
from ConvexHullNode import ConvexHullNode
|
||||
from . import ConvexHullNode
|
||||
|
||||
class ConvexHullJob(Job):
|
||||
def __init__(self, node):
|
||||
|
@ -26,7 +26,7 @@ class ConvexHullJob(Job):
|
|||
# Then, do a Minkowski hull with a simple 1x1 quad to outset and round the normal convex hull.
|
||||
hull = hull.getMinkowskiHull(Polygon(numpy.array([[-1, -1], [-1, 1], [1, 1], [1, -1]], numpy.float32)))
|
||||
|
||||
hull_node = ConvexHullNode(self._node, hull, Application.getInstance().getController().getScene().getRoot())
|
||||
hull_node = ConvexHullNode.ConvexHullNode(self._node, hull, Application.getInstance().getController().getScene().getRoot())
|
||||
|
||||
self._node._convex_hull = hull
|
||||
delattr(self._node, "_convex_hull_job")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue