Use the printing area (hull + adhesion for one-at-a-time) instead of

convex hull for build volume collision detection. The convex hull is
not suitable for this purpose because for one-at-a-time it includes the
machine head polygon, which should be allowed to travel outside the
build volume

CURA-6522
This commit is contained in:
Nino van Hooff 2019-12-06 11:08:55 +01:00
parent fc060f7724
commit 2d8a415a69
2 changed files with 15 additions and 10 deletions

View file

@ -88,7 +88,7 @@ class CuraSceneNode(SceneNode):
## Return if any area collides with the convex hull of this scene node
def collidesWithAreas(self, areas: List[Polygon]) -> bool:
convex_hull = self.callDecoration("getConvexHull")
convex_hull = self.callDecoration("getPrintingArea")
if convex_hull:
if not convex_hull.isValid():
return False