From 4c409fbac91c5ee04f133f5af74e1ca3c5a991b0 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 5 Sep 2018 15:09:36 -0700 Subject: [PATCH] triangulation: Fracture/Simplify all polygons Calls the simplify/fracture polygon code on any polygon prior to tesselation. This avoids issues with degenerate polygons where the degenerate points are not sequential. Fixes: lp:1790534 * https://bugs.launchpad.net/kicad/+bug/1790534 (cherry picked from commit 73c2297144fb14ef28ab7811cc0d3523e735336a) --- common/geometry/shape_poly_set.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/geometry/shape_poly_set.cpp b/common/geometry/shape_poly_set.cpp index 637c93e8cb..4711189d62 100644 --- a/common/geometry/shape_poly_set.cpp +++ b/common/geometry/shape_poly_set.cpp @@ -1908,8 +1908,7 @@ void SHAPE_POLY_SET::CacheTriangulation() SHAPE_POLY_SET tmpSet = *this; - if( tmpSet.HasHoles() ) - tmpSet.Fracture( PM_FAST ); + tmpSet.Fracture( PM_FAST ); m_triangulatedPolys.clear();