pcbnew: new zone filling algorithm using ClipperLib. Possibility to fall back to the old one
This commit is contained in:
committed by
Maciej Suminski
parent
feaa403266
commit
eba3a55bb2
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user