plotting: When aggregating areas, heal first

The fracture routine introduces degenerate points that are healed by the
Clipper Polygon simplify command.  This is normally fine but in the case
of hatched areas, there are thousands of degenerate points, which is
very slow in Clipper.  Healing the degenerate points first before
simplifying and fracturing is much faster.

Fixes: lp:1847764
* https://bugs.launchpad.net/kicad/+bug/1847764
This commit is contained in:
Seth Hillbrand 2019-10-12 20:12:22 -07:00
parent 337244d423
commit e291576c38
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ void PlotStandardLayer( BOARD *aBoard, PLOTTER* aPlotter,
if( needFracture )
{
aggregateArea.Simplify( SHAPE_POLY_SET::PM_STRICTLY_SIMPLE );
aggregateArea.Unfracture( SHAPE_POLY_SET::PM_STRICTLY_SIMPLE );
aggregateArea.Fracture( SHAPE_POLY_SET::PM_STRICTLY_SIMPLE );
}