From 3103ff9aa396b67ebcd7b897dbf932a30eafbc00 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 4 Jul 2021 12:09:59 -0400 Subject: [PATCH] Fix display of filled polygons with arcs in the outline --- libs/kimath/src/geometry/shape_poly_set.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/kimath/src/geometry/shape_poly_set.cpp b/libs/kimath/src/geometry/shape_poly_set.cpp index b857640b6e..e9dafbf0ae 100644 --- a/libs/kimath/src/geometry/shape_poly_set.cpp +++ b/libs/kimath/src/geometry/shape_poly_set.cpp @@ -2324,7 +2324,9 @@ void SHAPE_POLY_SET::CacheTriangulation( bool aPartition ) if( aPartition ) { // This partitions into regularly-sized grids (1cm in pcbnew) - partitionPolyIntoRegularCellGrid( *this, 1e7, tmpSet ); + SHAPE_POLY_SET flattened( *this ); + flattened.ClearArcs(); + partitionPolyIntoRegularCellGrid( flattened, 1e7, tmpSet ); } else {