Evaluate rules when fetching zone edge clearance.

This commit is contained in:
Jeff Young 2021-01-23 15:43:13 +00:00
parent af5825bd36
commit d8c7c8f700
1 changed files with 7 additions and 3 deletions

View File

@ -1185,9 +1185,13 @@ bool ZONE::BuildSmoothedPoly( SHAPE_POLY_SET& aSmoothedPoly, PCB_LAYER_ID aLayer
if( board )
{
edgeClearance = board->GetDesignSettings().m_CopperEdgeClearance;
maxError = board->GetDesignSettings().m_MaxError;
keepExternalFillets = board->GetDesignSettings().m_ZoneKeepExternalFillets;
BOARD_DESIGN_SETTINGS& bds = board->GetDesignSettings();
DRC_CONSTRAINT c = bds.m_DRCEngine->EvalRulesForItems( EDGE_CLEARANCE_CONSTRAINT, this,
nullptr, UNDEFINED_LAYER );
edgeClearance = c.Value().Min();
maxError = bds.m_MaxError;
keepExternalFillets = bds.m_ZoneKeepExternalFillets;
}
auto smooth = [&]( SHAPE_POLY_SET& aPoly )