From a8afb9045f2ede555cf9e33291126cd2d29d5c1c Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 26 Aug 2015 15:24:10 +0200 Subject: [PATCH] Disabled bounding box intersection for physics Fixes Ultimaker/Cura#294 --- cura/PlatformPhysics.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py index f96c81abce..8863081858 100644 --- a/cura/PlatformPhysics.py +++ b/cura/PlatformPhysics.py @@ -107,11 +107,12 @@ class PlatformPhysics: continue # Check to see if the bounding boxes intersect. If not, we can ignore the node as there is no way the hull intersects. - if node.getBoundingBox().intersectsBox(other_node.getBoundingBox()) == AxisAlignedBox.IntersectionResult.NoIntersection: - continue + #if node.getBoundingBox().intersectsBox(other_node.getBoundingBox()) == AxisAlignedBox.IntersectionResult.NoIntersection: + # continue # Get the overlap distance for both convex hulls. If this returns None, there is no intersection. overlap = node.callDecoration("getConvexHull").intersectsPolygon(other_node.callDecoration("getConvexHull")) + print("Overlap", overlap) if overlap is None: continue