CADSTAR PCB Archive Importer: Fix Polygon with Holes

This commit is contained in:
Roberto Fernandez Bautista 2020-08-23 22:54:19 +01:00 committed by Seth Hillbrand
parent 56080a0adc
commit 1351f5bcf1
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}