Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2015-08-26 16:24:10 +0300
committerJaime van Kessel <nallath@gmail.com>2015-08-26 16:24:10 +0300
commita8afb9045f2ede555cf9e33291126cd2d29d5c1c (patch)
tree58cb8d9da3cbf9b2a98684318c36e2afd27c5198 /cura/PlatformPhysics.py
parenta49ce21fbecccd2efe1db10a9b7abb926f796bf2 (diff)
Disabled bounding box intersection for physics
Fixes Ultimaker/Cura#294
Diffstat (limited to 'cura/PlatformPhysics.py')
-rw-r--r--cura/PlatformPhysics.py5
1 files 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