Evaluate rules when fetching zone edge clearance.
This commit is contained in:
parent
af5825bd36
commit
d8c7c8f700
|
@ -1185,9 +1185,13 @@ bool ZONE::BuildSmoothedPoly( SHAPE_POLY_SET& aSmoothedPoly, PCB_LAYER_ID aLayer
|
||||||
|
|
||||||
if( board )
|
if( board )
|
||||||
{
|
{
|
||||||
edgeClearance = board->GetDesignSettings().m_CopperEdgeClearance;
|
BOARD_DESIGN_SETTINGS& bds = board->GetDesignSettings();
|
||||||
maxError = board->GetDesignSettings().m_MaxError;
|
|
||||||
keepExternalFillets = board->GetDesignSettings().m_ZoneKeepExternalFillets;
|
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 )
|
auto smooth = [&]( SHAPE_POLY_SET& aPoly )
|
||||||
|
|
Loading…
Reference in New Issue