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
diff options
context:
space:
mode:
authorenricoturri1966 <enricoturri@seznam.cz>2021-05-21 12:56:10 +0300
committerenricoturri1966 <enricoturri@seznam.cz>2021-05-21 12:56:10 +0300
commit49f29e835334d0033771d25ff341c06b1b564b9b (patch)
treeefb30c309bb9773a8ecaf1f80ca1c2ecc18d1174 /tests/libslic3r
parent90be278d981d60faff8cb00a165687656fdcbfeb (diff)
Added debug output to help fixing unit test for 2D convex hull of sinking object on RasperryPi
Diffstat (limited to 'tests/libslic3r')
-rw-r--r--tests/libslic3r/test_3mf.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/libslic3r/test_3mf.cpp b/tests/libslic3r/test_3mf.cpp
index c7c30daf6..e865b1d78 100644
--- a/tests/libslic3r/test_3mf.cpp
+++ b/tests/libslic3r/test_3mf.cpp
@@ -109,11 +109,13 @@ SCENARIO("2D convex hull of sinking object", "[3mf]") {
{ -4244, 19502998 },
{ -4242640, -8537523 }
};
- bool res = hull_2d.points.size() == result.size();
- if (res) {
- for (size_t i = 0; i < hull_2d.points.size(); ++i) {
- res &= hull_2d.points[i].isApprox(result[i]);
- }
+
+ bool res = hull_2d.points == result;
+
+ std::cout << "hull_2d vertices count: " << hull_2d.points.size() << "\n";
+ std::cout << "hull_2d vertices:\n";
+ for (size_t i = 0; i < hull_2d.points.size(); ++i) {
+ std::cout << hull_2d.points[i].x() << ", " << hull_2d.points[i].y() << "\n";
}
THEN("2D convex hull should match with reference") {