pcbnew: new zone filling algorithm using ClipperLib. Possibility to fall back to the old one

This commit is contained in:
Tomasz wlostowski
2015-06-12 17:13:18 +02:00
committed by Maciej Suminski
parent feaa403266
commit eba3a55bb2
11 changed files with 569 additions and 138 deletions
+7 -2
View File
@@ -104,10 +104,15 @@ bool ZONE_CONTAINER::BuildFilledSolidAreasPolygons( BOARD* aPcb, CPOLYGONS_LIST*
m_FilledPolysList.RemoveAllContours();
if( IsOnCopperLayer() )
AddClearanceAreasPolygonsToPolysList( aPcb );
{
if(g_UseOldZoneFillingAlgo)
AddClearanceAreasPolygonsToPolysList( aPcb );
else
AddClearanceAreasPolygonsToPolysList_NG( aPcb );
}
else
{
int margin = m_ZoneMinThickness / 2;
int margin = m_ZoneMinThickness / 2;
m_smoothedPoly->m_CornersList.InflateOutline(m_FilledPolysList, -margin, true );
}