mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-27 04:41:06 -07:00
One at a time now has the correct push free behaviour
This commit is contained in:
parent
45f213cd82
commit
6d184ea281
1 changed files with 5 additions and 1 deletions
|
|
@ -111,6 +111,10 @@ class PlatformPhysics:
|
||||||
|
|
||||||
# Get the overlap distance for both convex hulls. If this returns None, there is no intersection.
|
# Get the overlap distance for both convex hulls. If this returns None, there is no intersection.
|
||||||
try:
|
try:
|
||||||
|
head_hull = node.callDecoration("getConvexHullHead")
|
||||||
|
if head_hull:
|
||||||
|
overlap = head_hull.intersectsPolygon(other_node.callDecoration("getConvexHull"))
|
||||||
|
else:
|
||||||
overlap = node.callDecoration("getConvexHull").intersectsPolygon(other_node.callDecoration("getConvexHull"))
|
overlap = node.callDecoration("getConvexHull").intersectsPolygon(other_node.callDecoration("getConvexHull"))
|
||||||
except:
|
except:
|
||||||
overlap = None #It can sometimes occur that the caclulated convex hull has no size, in which case there is no overlap.
|
overlap = None #It can sometimes occur that the caclulated convex hull has no size, in which case there is no overlap.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue