|
|
|
@ -254,7 +254,7 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackAgainstItem( TRACK* track, SHA |
|
|
|
|
|
|
|
if( testClearance ) |
|
|
|
{ |
|
|
|
constraint = m_drcEngine->EvalRulesForItems( CLEARANCE_CONSTRAINT, track, other, layer ); |
|
|
|
constraint = m_drcEngine->EvalRules( CLEARANCE_CONSTRAINT, track, other, layer ); |
|
|
|
clearance = constraint.GetValue().Min(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -322,7 +322,8 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackAgainstItem( TRACK* track, SHA |
|
|
|
|
|
|
|
if( holeShape ) |
|
|
|
{ |
|
|
|
constraint = m_drcEngine->EvalRulesForItems( HOLE_CLEARANCE_CONSTRAINT, other, track ); |
|
|
|
constraint = m_drcEngine->EvalRules( HOLE_CLEARANCE_CONSTRAINT, other, track, |
|
|
|
track->GetLayer() ); |
|
|
|
clearance = constraint.GetValue().Min(); |
|
|
|
|
|
|
|
if( clearance >= 0 && trackShape->Collide( holeShape.get(), |
|
|
|
@ -371,8 +372,7 @@ void DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZones( BOARD_ITEM* aItem |
|
|
|
|
|
|
|
if( aItem->GetBoundingBox().Intersects( zone->GetCachedBoundingBox() ) ) |
|
|
|
{ |
|
|
|
auto constraint = m_drcEngine->EvalRulesForItems( CLEARANCE_CONSTRAINT, aItem, zone, |
|
|
|
aLayer ); |
|
|
|
auto constraint = m_drcEngine->EvalRules( CLEARANCE_CONSTRAINT, aItem, zone, aLayer ); |
|
|
|
int clearance = constraint.GetValue().Min(); |
|
|
|
|
|
|
|
if( clearance < 0 ) |
|
|
|
@ -558,8 +558,7 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa |
|
|
|
|
|
|
|
if( testHoles && pad->FlashLayer( layer ) && otherPad->GetDrillSize().x ) |
|
|
|
{ |
|
|
|
constraint = m_drcEngine->EvalRulesForItems( HOLE_CLEARANCE_CONSTRAINT, pad, |
|
|
|
otherPad ); |
|
|
|
constraint = m_drcEngine->EvalRules( HOLE_CLEARANCE_CONSTRAINT, pad, otherPad, layer ); |
|
|
|
clearance = constraint.GetValue().Min(); |
|
|
|
|
|
|
|
if( clearance >= 0 && padShape->Collide( otherPad->GetEffectiveHoleShape(), |
|
|
|
@ -583,8 +582,7 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa |
|
|
|
|
|
|
|
if( testHoles && otherPad->FlashLayer( layer ) && pad->GetDrillSize().x ) |
|
|
|
{ |
|
|
|
constraint = m_drcEngine->EvalRulesForItems( HOLE_CLEARANCE_CONSTRAINT, pad, |
|
|
|
otherPad ); |
|
|
|
constraint = m_drcEngine->EvalRules( HOLE_CLEARANCE_CONSTRAINT, pad, otherPad, layer ); |
|
|
|
clearance = constraint.GetValue().Min(); |
|
|
|
|
|
|
|
if( clearance >= 0 && otherShape->Collide( pad->GetEffectiveHoleShape(), |
|
|
|
@ -616,7 +614,7 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa |
|
|
|
|
|
|
|
if( testClearance ) |
|
|
|
{ |
|
|
|
constraint = m_drcEngine->EvalRulesForItems( CLEARANCE_CONSTRAINT, pad, other, layer ); |
|
|
|
constraint = m_drcEngine->EvalRules( CLEARANCE_CONSTRAINT, pad, other, layer ); |
|
|
|
clearance = constraint.GetValue().Min(); |
|
|
|
|
|
|
|
if( clearance > 0 && padShape->Collide( otherShape.get(), |
|
|
|
@ -768,8 +766,8 @@ void DRC_TEST_PROVIDER_COPPER_CLEARANCE::testZones() |
|
|
|
// Examine a candidate zone: compare zoneToTest to zoneRef
|
|
|
|
|
|
|
|
// Get clearance used in zone to zone test.
|
|
|
|
auto constraint = m_drcEngine->EvalRulesForItems( CLEARANCE_CONSTRAINT, zoneRef, |
|
|
|
zoneToTest ); |
|
|
|
auto constraint = m_drcEngine->EvalRules( CLEARANCE_CONSTRAINT, zoneRef, zoneToTest, |
|
|
|
layer ); |
|
|
|
int zone2zoneClearance = constraint.GetValue().Min(); |
|
|
|
|
|
|
|
// test for some corners of zoneRef inside zoneToTest
|
|
|
|
|