From f54836160e2f57637f42c6046ea31412a78cf944 Mon Sep 17 00:00:00 2001 From: aismann Date: Mon, 8 May 2023 00:17:38 +0200 Subject: [PATCH] Update CCAutoPolygon.cpp (#1201) Removed "nonsens" code --- core/2d/CCAutoPolygon.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/2d/CCAutoPolygon.cpp b/core/2d/CCAutoPolygon.cpp index c5cbc5a651..6fe61f1dca 100644 --- a/core/2d/CCAutoPolygon.cpp +++ b/core/2d/CCAutoPolygon.cpp @@ -524,12 +524,6 @@ std::vector AutoPolygon::expand(const std::vector& points, const ax: result.emplace_back(Clipper2Lib::Point64(pt.x * PRECISION, pt.y * PRECISION)); } - if (!Clipper2Lib::IsPositive(result)) - { - log("AUTOPOLYGON: cannot expand points for %s detect a hole!, e: %f", _filename.c_str(), epsilon); - return std::vector(); - } - Clipper2Lib::ClipperOffset co; co.AddPath(result, Clipper2Lib::JoinType::Miter, Clipper2Lib::EndType::Polygon); co.Execute(epsilon * PRECISION, solution);