mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
Fix typing
CURA-6785
This commit is contained in:
parent
1b1029a3e0
commit
5ec6b2fdf7
1 changed files with 3 additions and 2 deletions
|
@ -76,7 +76,6 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
||||||
def __deepcopy__(self, memo):
|
def __deepcopy__(self, memo):
|
||||||
return ConvexHullDecorator()
|
return ConvexHullDecorator()
|
||||||
|
|
||||||
|
|
||||||
## The polygon representing the 2D adhesion area.
|
## The polygon representing the 2D adhesion area.
|
||||||
# If no adhesion is used, the regular convex hull is returned
|
# If no adhesion is used, the regular convex hull is returned
|
||||||
def getAdhesionArea(self) -> Optional[Polygon]:
|
def getAdhesionArea(self) -> Optional[Polygon]:
|
||||||
|
@ -84,8 +83,10 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
hull = self._compute2DConvexHull()
|
hull = self._compute2DConvexHull()
|
||||||
return self._add2DAdhesionMargin(hull)
|
if hull is None:
|
||||||
|
return None
|
||||||
|
|
||||||
|
return self._add2DAdhesionMargin(hull)
|
||||||
|
|
||||||
## Get the unmodified 2D projected convex hull with 2D adhesion area of the node (if any)
|
## Get the unmodified 2D projected convex hull with 2D adhesion area of the node (if any)
|
||||||
def getConvexHull(self) -> Optional[Polygon]:
|
def getConvexHull(self) -> Optional[Polygon]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue