mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Include adhesion for 1-at-a-time exclusion shadow
CURA-10307
This commit is contained in:
parent
fce35b78c4
commit
09d4f083e0
1 changed files with 2 additions and 5 deletions
|
@ -111,11 +111,7 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
||||||
|
|
||||||
# Parent can be None if node is just loaded.
|
# Parent can be None if node is just loaded.
|
||||||
if self._isSingularOneAtATimeNode():
|
if self._isSingularOneAtATimeNode():
|
||||||
hull = self.getConvexHullHeadFull()
|
return self.getConvexHullHeadFull()
|
||||||
if hull is None:
|
|
||||||
return None
|
|
||||||
hull = self._add2DAdhesionMargin(hull)
|
|
||||||
return hull
|
|
||||||
|
|
||||||
return self._compute2DConvexHull()
|
return self._compute2DConvexHull()
|
||||||
|
|
||||||
|
@ -323,6 +319,7 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
||||||
|
|
||||||
def _compute2DConvexHeadFull(self) -> Optional[Polygon]:
|
def _compute2DConvexHeadFull(self) -> Optional[Polygon]:
|
||||||
convex_hull = self._compute2DConvexHull()
|
convex_hull = self._compute2DConvexHull()
|
||||||
|
convex_hull = self._add2DAdhesionMargin(convex_hull)
|
||||||
if convex_hull:
|
if convex_hull:
|
||||||
return convex_hull.getMinkowskiHull(self._getHeadAndFans())
|
return convex_hull.getMinkowskiHull(self._getHeadAndFans())
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue