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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2019-10-03 18:18:03 +0300
committertamasmeszaros <meszaros.q@gmail.com>2019-10-03 18:18:03 +0300
commit2edd5abf06a61d802c115aeceddb9a2a3788494b (patch)
tree8a07702cc3e5e543cc291be0cfdb149fb99f3818 /tests
parent4569a6026a9a841a4515430d44f8ca8da126ee31 (diff)
Fix endless loop in pinhead creation.
* Headless stick penetration value from global cfg * eliminate warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/sla_print/sla_print_tests_main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/sla_print/sla_print_tests_main.cpp b/tests/sla_print/sla_print_tests_main.cpp
index 5952e5545..bd2475f41 100644
--- a/tests/sla_print/sla_print_tests_main.cpp
+++ b/tests/sla_print/sla_print_tests_main.cpp
@@ -260,7 +260,7 @@ void test_support_model_collision(
// Set head penetration to a small negative value which should ensure that
// the supports will not touch the model body.
- supportcfg.head_penetration_mm = -1.; // 1 mm should be more than enough
+ supportcfg.head_penetration_mm = -0.1;
test_supports(obj_filename, supportcfg, byproducts);
@@ -277,6 +277,7 @@ void test_support_model_collision(
const ExPolygons &mod_slice = byproducts.model_slices[n];
Polygons intersections = intersection(sup_slice, mod_slice);
+
notouch = notouch && intersections.empty();
}