From f5662458a23fed2b63e3c7084e1f254e3a0db808 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Wed, 4 Jan 2023 13:38:59 +0100 Subject: [PATCH] Removed polygon simplification "hole in square" unit test, simplification of CW contours is no more enabled by assert. --- tests/libslic3r/test_polygon.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tests/libslic3r/test_polygon.cpp b/tests/libslic3r/test_polygon.cpp index c1e1c3b73..b2608883c 100644 --- a/tests/libslic3r/test_polygon.cpp +++ b/tests/libslic3r/test_polygon.cpp @@ -196,19 +196,6 @@ SCENARIO("Simplify polygon", "[Polygon]") } } } - GIVEN("hole in square") { - // CW oriented - auto hole_in_square = Polygon{ {140, 140}, {140, 160}, {160, 160}, {160, 140} }; - WHEN("simplified") { - Polygons simplified = hole_in_square.simplify(2.); - THEN("hole simplification returns one polygon") { - REQUIRE(simplified.size() == 1); - } - THEN("hole simplification turns cw polygon into ccw polygon") { - REQUIRE(simplified.front().is_counter_clockwise()); - } - } - } } #include "libslic3r/ExPolygon.hpp"