From 1351f5bcf1bb7e9ce929157961097898a9585c58 Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Sun, 23 Aug 2020 22:54:19 +0100 Subject: [PATCH] CADSTAR PCB Archive Importer: Fix Polygon with Holes --- pcbnew/cadstar2kicadpcb_plugin/cadstar_pcb.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/cadstar2kicadpcb_plugin/cadstar_pcb.cpp b/pcbnew/cadstar2kicadpcb_plugin/cadstar_pcb.cpp index a34b7e0b67..0e71e29efd 100644 --- a/pcbnew/cadstar2kicadpcb_plugin/cadstar_pcb.cpp +++ b/pcbnew/cadstar2kicadpcb_plugin/cadstar_pcb.cpp @@ -609,6 +609,10 @@ SHAPE_POLY_SET CADSTAR_PCB::getPolySetFromCadstarShape( polySet.Inflate( aLineThickness / 2, 32, SHAPE_POLY_SET::CORNER_STRATEGY::ROUND_ALL_CORNERS ); + //Make a new polyset with no holes + //TODO: Using strictly simple to be safe, but need to find out if PM_FAST works okay + polySet.Fracture( SHAPE_POLY_SET::POLYGON_MODE::PM_STRICTLY_SIMPLE ); + return polySet; }