From 2316abd1098978d3d11452d075c676a6753ffeb1 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Tue, 17 Oct 2023 11:21:25 +0200 Subject: [PATCH] =?UTF-8?q?../tests/libslic3r/test=5Femboss.cpp:202:34:=20?= =?UTF-8?q?error:=20=E2=80=98intersection=5Fpoints=E2=80=99=20was=20not=20?= =?UTF-8?q?declared=20in=20this=20scope;=20did=20you=20mean=20=E2=80=98int?= =?UTF-8?q?ersections=5Fprev=E2=80=99=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/libslic3r/test_emboss.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/libslic3r/test_emboss.cpp b/tests/libslic3r/test_emboss.cpp index d487d1e9d9..24797b1f13 100644 --- a/tests/libslic3r/test_emboss.cpp +++ b/tests/libslic3r/test_emboss.cpp @@ -195,15 +195,17 @@ TEST_CASE("Visualize glyph from font", "[Emboss]") #endif // VISUALIZE #include "test_utils.hpp" -#include "nanosvg/nanosvg.h" // load SVG file -#include "libslic3r/NSVGUtils.hpp" +#include // load SVG file +#include +#include ExPolygons heal_and_check(const Polygons &polygons) { - Pointfs intersections_prev = intersection_points(polygons); + IntersectionsLines intersections_prev = get_intersections(polygons); Points polygons_points = to_points(polygons); Points duplicits_prev = collect_duplicates(polygons_points); - ExPolygons shape = Emboss::heal_polygons(polygons); + auto [shape, success] = Emboss::heal_polygons(polygons); + CHECK(success); // Is default shape for unhealabled shape? bool is_default_shape = @@ -213,7 +215,7 @@ ExPolygons heal_and_check(const Polygons &polygons) shape.front().holes.front().points.size() == 4 ; CHECK(!is_default_shape); - Pointfs intersections = intersection_points(shape); + IntersectionsLines intersections = get_intersections(shape); Points shape_points = to_points(shape); Points duplicits = collect_duplicates(shape_points); //{