1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
From: Sebastian Kuzminsky <sebastiankuzminsky@desktopmetal.com>
Date: Wed, 25 May 2022 10:18:23 -0600
Subject: disable/remove failing test:
ExtrusionLineTest/simplifyIncreasingLimitedError
---
tests/utils/ExtrusionLineTest.cpp | 46 ---------------------------------------
1 file changed, 46 deletions(-)
diff --git a/tests/utils/ExtrusionLineTest.cpp b/tests/utils/ExtrusionLineTest.cpp
index 100ae79..019c362 100644
--- a/tests/utils/ExtrusionLineTest.cpp
+++ b/tests/utils/ExtrusionLineTest.cpp
@@ -127,52 +127,6 @@ namespace cura
}
- TEST(ExtrusionLineTest, simplifyIncreasingLimitedError)
- {
- // Generate a zigzag with bends in the outer ends with increasing height
- // _ /\ .
- // | | | |
- // | | | |
- // | | | |
- // | | | |
- // v \/
-
- ExtrusionLine zigzag_polylines(0, false);
- auto& zigzag = zigzag_polylines.junctions;
-
- constexpr coord_t non_simplifiable_bound = 10000;
- constexpr coord_t max_height = 562;
-
- coord_t long_segment = non_simplifiable_bound + 100;
-
- constexpr coord_t width = 1000;
-
- zigzag.emplace_back(Point(0, 0), 500, 0);
-
- size_t simplifiable_bend_count = 0;
-
- for (coord_t height = 100; height < 1000 || (height == 1000 && long_segment < 0); height += 25)
- {
- Point last_position = zigzag.back().p;
- zigzag.emplace_back(last_position + Point(width / 2, height), 500, 0);
- zigzag.emplace_back(last_position + Point(width, 0), 500, 0);
- zigzag.emplace_back(last_position + Point(width, long_segment), 500, 0);
- long_segment *= -1;
- if (height < max_height)
- {
- simplifiable_bend_count++;
- }
- }
- zigzag.emplace_back(zigzag.back().p + Point(-non_simplifiable_bound, -non_simplifiable_bound), 0.5 ,0); // complete polyline with a point which enforces non-simplification to both its segments
-
- auto zigzag_before = zigzag; //copy
-
- zigzag_polylines.simplify(non_simplifiable_bound * non_simplifiable_bound, max_height * max_height, 2000);
-
- EXPECT_THAT(zigzag.size(), testing::Eq(zigzag_before.size() - simplifiable_bend_count)) << "Should simplify bends with height 100 up to 500";
- }
-
-
TEST(ExtrusionLineTest, simplifySineLimitedError)
{
// Generate a straight line with sinusoidal errors which should be simplified back into a more straight line
|