2020-07-27 13:33:06 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004-2020 KiCad Developers.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2020-06-19 21:34:19 +00:00
|
|
|
#include <common.h>
|
|
|
|
#include <class_board.h>
|
|
|
|
#include <class_drawsegment.h>
|
|
|
|
#include <class_pad.h>
|
|
|
|
|
|
|
|
#include <convert_basic_shapes_to_polygon.h>
|
|
|
|
#include <geometry/polygon_test_point_inside.h>
|
|
|
|
|
|
|
|
#include <geometry/seg.h>
|
|
|
|
#include <geometry/shape_poly_set.h>
|
|
|
|
#include <geometry/shape_rect.h>
|
2020-07-22 23:05:37 +00:00
|
|
|
#include <geometry/shape_segment.h>
|
2020-06-19 21:34:19 +00:00
|
|
|
|
|
|
|
#include <drc_proto/drc_engine.h>
|
|
|
|
#include <drc_proto/drc_item.h>
|
|
|
|
#include <drc_proto/drc_rule.h>
|
|
|
|
#include <drc_proto/drc_test_provider_clearance_base.h>
|
|
|
|
|
2020-07-27 13:33:06 +00:00
|
|
|
/*
|
|
|
|
Holes clearance test. Checks pad and via holes for their mechanical clearances.
|
|
|
|
Generated errors:
|
|
|
|
- DRCE_HOLE_CLEARANCE
|
|
|
|
|
|
|
|
TODO: vias-in-smd-pads check
|
|
|
|
*/
|
|
|
|
|
2020-06-19 21:34:19 +00:00
|
|
|
namespace test {
|
|
|
|
|
|
|
|
class DRC_TEST_PROVIDER_HOLE_CLEARANCE : public DRC_TEST_PROVIDER_CLEARANCE_BASE
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DRC_TEST_PROVIDER_HOLE_CLEARANCE () :
|
2020-07-31 01:46:05 +00:00
|
|
|
DRC_TEST_PROVIDER_CLEARANCE_BASE(),
|
|
|
|
m_board( nullptr ),
|
|
|
|
m_largestRadius( 0 )
|
2020-06-19 21:34:19 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-07-31 01:46:05 +00:00
|
|
|
virtual ~DRC_TEST_PROVIDER_HOLE_CLEARANCE()
|
2020-06-19 21:34:19 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual bool Run() override;
|
|
|
|
|
2020-07-31 01:46:05 +00:00
|
|
|
virtual const wxString GetName() const override
|
2020-06-19 21:34:19 +00:00
|
|
|
{
|
2020-07-31 01:46:05 +00:00
|
|
|
return "hole_clearance";
|
2020-06-19 21:34:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
virtual const wxString GetDescription() const override
|
|
|
|
{
|
|
|
|
return "Tests clearance of holes (via/pad drills)";
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual std::set<test::DRC_RULE_ID_T> GetMatchingRuleIds() const override;
|
|
|
|
|
|
|
|
private:
|
2020-07-27 13:33:06 +00:00
|
|
|
void addHole( const VECTOR2I& aLocation, int aRadius, BOARD_ITEM* aOwner );
|
2020-07-15 16:23:56 +00:00
|
|
|
|
2020-07-27 13:33:06 +00:00
|
|
|
void buildHoleList();
|
|
|
|
void testHoles2Holes();
|
|
|
|
void testPads2Holes();
|
2020-07-15 16:23:56 +00:00
|
|
|
|
2020-06-19 21:34:19 +00:00
|
|
|
bool doPadToPadHoleDrc( D_PAD* aRefPad, D_PAD** aStart, D_PAD** aEnd, int x_limit );
|
|
|
|
|
2020-07-15 16:23:56 +00:00
|
|
|
struct DRILLED_HOLE
|
|
|
|
{
|
2020-07-27 13:33:06 +00:00
|
|
|
VECTOR2I m_location;
|
2020-07-15 16:23:56 +00:00
|
|
|
int m_drillRadius = 0;
|
|
|
|
BOARD_ITEM* m_owner = nullptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
BOARD* m_board;
|
|
|
|
std::vector<DRILLED_HOLE> m_holes;
|
|
|
|
int m_largestRadius;
|
|
|
|
|
2020-06-19 21:34:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
bool test::DRC_TEST_PROVIDER_HOLE_CLEARANCE::Run()
|
|
|
|
{
|
|
|
|
auto bds = m_drcEngine->GetDesignSettings();
|
|
|
|
m_board = m_drcEngine->GetBoard();
|
2020-06-30 08:42:43 +00:00
|
|
|
|
|
|
|
m_largestClearance = 0;
|
2020-07-27 13:33:06 +00:00
|
|
|
m_largestRadius = 0;
|
2020-06-30 08:42:43 +00:00
|
|
|
|
|
|
|
for( auto rule : m_drcEngine->QueryRulesById( test::DRC_RULE_ID_T::DRC_RULE_ID_HOLE_CLEARANCE ) )
|
|
|
|
{
|
2020-07-15 16:23:56 +00:00
|
|
|
drc_dbg(1, "process rule %p\n", rule );
|
2020-06-30 08:42:43 +00:00
|
|
|
if( rule->GetConstraint().m_Value.HasMin() )
|
2020-07-15 16:23:56 +00:00
|
|
|
{
|
|
|
|
drc_dbg(1, "min-hole-clearance %d\n", rule->GetConstraint().m_Value.Min() );
|
2020-06-30 08:42:43 +00:00
|
|
|
m_largestClearance = std::max( m_largestClearance, rule->GetConstraint().m_Value.Min() );
|
2020-07-15 16:23:56 +00:00
|
|
|
}
|
2020-06-30 08:42:43 +00:00
|
|
|
}
|
|
|
|
|
2020-07-15 16:23:56 +00:00
|
|
|
ReportAux( "Worst hole clearance : %d nm", m_largestClearance );
|
2020-06-19 21:34:19 +00:00
|
|
|
|
2020-07-27 13:33:06 +00:00
|
|
|
buildHoleList();
|
|
|
|
|
|
|
|
ReportStage( ("Testing hole<->pad clearances"), 0, 2 );
|
|
|
|
testPads2Holes();
|
|
|
|
ReportStage( ("Testing hole<->hole clearances"), 0, 2 );
|
|
|
|
testHoles2Holes();
|
|
|
|
|
|
|
|
reportRuleStatistics();
|
2020-06-19 21:34:19 +00:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2020-07-27 13:33:06 +00:00
|
|
|
|
|
|
|
void test::DRC_TEST_PROVIDER_HOLE_CLEARANCE::buildHoleList()
|
|
|
|
{
|
|
|
|
bool success = true;
|
|
|
|
BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings();
|
|
|
|
|
|
|
|
m_holes.clear();
|
|
|
|
|
|
|
|
for( auto module : m_board->Modules() )
|
|
|
|
{
|
|
|
|
for( auto pad : module->Pads() )
|
|
|
|
{
|
|
|
|
int holeSize = std::min( pad->GetDrillSize().x, pad->GetDrillSize().y );
|
|
|
|
|
|
|
|
if( holeSize == 0 )
|
|
|
|
continue;
|
2020-07-31 01:46:05 +00:00
|
|
|
|
2020-07-27 13:33:06 +00:00
|
|
|
// fixme: support for non-round (i.e. slotted) holes
|
|
|
|
if( pad->GetDrillShape() == PAD_DRILL_SHAPE_CIRCLE )
|
|
|
|
addHole( pad->GetPosition(), pad->GetDrillSize().x / 2, pad );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for( auto track : m_board->Tracks() )
|
|
|
|
{
|
|
|
|
if ( track->Type() == PCB_VIA_T )
|
|
|
|
{
|
|
|
|
auto via = static_cast<VIA*>( track );
|
|
|
|
addHole( via->GetPosition(), via->GetDrillValue() / 2, via );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ReportAux( "Total drilled holes : %d", m_holes.size() );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void test::DRC_TEST_PROVIDER_HOLE_CLEARANCE::testPads2Holes()
|
2020-06-19 21:34:19 +00:00
|
|
|
{
|
|
|
|
std::vector<D_PAD*> sortedPads;
|
|
|
|
|
|
|
|
m_board->GetSortedPadListByXthenYCoord( sortedPads );
|
|
|
|
|
|
|
|
if( sortedPads.empty() )
|
|
|
|
return;
|
|
|
|
|
|
|
|
// find the max size of the pads (used to stop the pad-to-pad tests)
|
|
|
|
int max_size = 0;
|
|
|
|
|
|
|
|
for( D_PAD* pad : sortedPads )
|
|
|
|
{
|
|
|
|
// GetBoundingRadius() is the radius of the minimum sized circle fully containing the pad
|
|
|
|
int radius = pad->GetBoundingRadius();
|
|
|
|
|
|
|
|
if( radius > max_size )
|
|
|
|
max_size = radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Better to be fast than accurate; this keeps us from having to look up / calculate the
|
|
|
|
// actual clearances
|
|
|
|
max_size += m_largestClearance;
|
|
|
|
|
|
|
|
// Upper limit of pad list (limit not included)
|
|
|
|
D_PAD** listEnd = &sortedPads[0] + sortedPads.size();
|
|
|
|
|
|
|
|
// Test the pads
|
|
|
|
for( auto& pad : sortedPads )
|
|
|
|
{
|
|
|
|
int x_limit = pad->GetPosition().x + pad->GetBoundingRadius() + max_size;
|
2020-07-15 16:23:56 +00:00
|
|
|
drc_dbg(10,"-> %p\n", pad);
|
2020-06-19 21:34:19 +00:00
|
|
|
doPadToPadHoleDrc( pad, &pad, listEnd, x_limit );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool test::DRC_TEST_PROVIDER_HOLE_CLEARANCE::doPadToPadHoleDrc( D_PAD* aRefPad, D_PAD** aStart, D_PAD** aEnd,
|
|
|
|
int x_limit )
|
|
|
|
{
|
|
|
|
const static LSET all_cu = LSET::AllCuMask();
|
|
|
|
|
|
|
|
LSET layerMask = aRefPad->GetLayerSet() & all_cu;
|
|
|
|
|
|
|
|
|
|
|
|
for( D_PAD** pad_list = aStart; pad_list<aEnd; ++pad_list )
|
|
|
|
{
|
|
|
|
D_PAD* pad = *pad_list;
|
|
|
|
|
|
|
|
if( pad == aRefPad )
|
|
|
|
continue;
|
|
|
|
|
2020-07-31 01:46:05 +00:00
|
|
|
|
2020-07-15 16:23:56 +00:00
|
|
|
|
|
|
|
// drc_dbg(10," chk against -> %p\n", pad);
|
2020-06-19 21:34:19 +00:00
|
|
|
|
|
|
|
// We can stop the test when pad->GetPosition().x > x_limit
|
|
|
|
// because the list is sorted by X values
|
|
|
|
if( pad->GetPosition().x > x_limit )
|
|
|
|
break;
|
|
|
|
|
2020-07-15 16:23:56 +00:00
|
|
|
// drc_dbg(10," chk2 against -> %p ds %d %d\n", pad, pad->GetDrillSize().x, aRefPad->GetDrillSize().x );
|
2020-07-31 01:46:05 +00:00
|
|
|
|
2020-07-15 16:23:56 +00:00
|
|
|
drc_dbg(1," chk1 against -> %p x0 %d x2 %d\n", pad, pad->GetDrillSize().x, aRefPad->GetDrillSize().x );
|
2020-06-19 21:34:19 +00:00
|
|
|
|
|
|
|
// No problem if pads which are on copper layers are on different copper layers,
|
|
|
|
// (pads can be only on a technical layer, to build complex pads)
|
|
|
|
// but their hole (if any ) can create DRC error because they are on all
|
|
|
|
// copper layers, so we test them
|
2020-07-15 16:23:56 +00:00
|
|
|
if( ( pad->GetLayerSet() & layerMask ) != 0 &&
|
2020-06-19 21:34:19 +00:00
|
|
|
( pad->GetLayerSet() & all_cu ) != 0 &&
|
|
|
|
( aRefPad->GetLayerSet() & all_cu ) != 0 )
|
|
|
|
{
|
|
|
|
|
|
|
|
// if holes are in the same location and have the same size and shape,
|
|
|
|
// this can be accepted
|
|
|
|
if( pad->GetPosition() == aRefPad->GetPosition()
|
|
|
|
&& pad->GetDrillSize() == aRefPad->GetDrillSize()
|
|
|
|
&& pad->GetDrillShape() == aRefPad->GetDrillShape() )
|
|
|
|
{
|
|
|
|
if( aRefPad->GetDrillShape() == PAD_DRILL_SHAPE_CIRCLE )
|
|
|
|
continue;
|
|
|
|
|
|
|
|
// for oval holes: must also have the same orientation
|
|
|
|
if( pad->GetOrientation() == aRefPad->GetOrientation() )
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
2020-07-15 16:23:56 +00:00
|
|
|
drc_dbg(1," chk3 against -> %p x0 %d x2 %d\n", pad, pad->GetDrillSize().x, aRefPad->GetDrillSize().x );
|
|
|
|
|
2020-06-19 21:34:19 +00:00
|
|
|
/* Here, we must test clearance between holes and pads
|
2020-07-15 16:23:56 +00:00
|
|
|
* pad size and shape is adjusted to pad drill size and shape
|
2020-06-19 21:34:19 +00:00
|
|
|
*/
|
|
|
|
if( pad->GetDrillSize().x )
|
|
|
|
{
|
|
|
|
// pad under testing has a hole, test this hole against pad reference
|
|
|
|
|
2020-07-15 16:23:56 +00:00
|
|
|
auto rule = m_drcEngine->EvalRulesForItems( test::DRC_RULE_ID_T::DRC_RULE_ID_HOLE_CLEARANCE, aRefPad, pad );
|
2020-06-19 21:34:19 +00:00
|
|
|
auto minClearance = rule->GetConstraint().GetValue().Min();
|
|
|
|
int actual;
|
|
|
|
|
2020-07-15 16:23:56 +00:00
|
|
|
drc_dbg(1,"check pad %p rule '%s' cl %d\n", pad, (const char*) rule->GetName().c_str(), minClearance );
|
|
|
|
|
2020-07-27 13:33:06 +00:00
|
|
|
accountCheck( rule );
|
|
|
|
|
2020-07-22 23:05:37 +00:00
|
|
|
auto refPadShape = aRefPad->GetEffectiveShape();
|
2020-07-15 16:23:56 +00:00
|
|
|
// fixme: pad stacks...
|
2020-07-22 23:05:37 +00:00
|
|
|
if( refPadShape->Collide( pad->GetEffectiveHoleShape(), minClearance, &actual ) )
|
2020-06-19 21:34:19 +00:00
|
|
|
{
|
2020-07-27 13:33:06 +00:00
|
|
|
DRC_ITEM* drcItem = DRC_ITEM::Create( DRCE_HOLE_CLEARANCE );
|
2020-06-19 21:34:19 +00:00
|
|
|
|
|
|
|
wxString msg;
|
|
|
|
|
|
|
|
msg.Printf( drcItem->GetErrorText() + _( " (%s clearance %s; actual %s)" ),
|
|
|
|
"",
|
|
|
|
MessageTextFromValue( userUnits(), minClearance, true ),
|
|
|
|
MessageTextFromValue( userUnits(), actual, true ) );
|
|
|
|
|
|
|
|
drcItem->SetErrorMessage( msg );
|
|
|
|
drcItem->SetItems( pad, aRefPad );
|
|
|
|
drcItem->SetViolatingRule( rule );
|
|
|
|
|
|
|
|
ReportWithMarker( drcItem, pad->GetPosition() );
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if( aRefPad->GetDrillSize().x ) // pad reference has a hole
|
|
|
|
{
|
2020-07-15 16:23:56 +00:00
|
|
|
|
|
|
|
auto rule = m_drcEngine->EvalRulesForItems( test::DRC_RULE_ID_T::DRC_RULE_ID_HOLE_CLEARANCE, aRefPad, pad );
|
2020-06-19 21:34:19 +00:00
|
|
|
auto minClearance = rule->GetConstraint().GetValue().Min();
|
|
|
|
int actual;
|
|
|
|
|
2020-07-27 13:33:06 +00:00
|
|
|
accountCheck( rule );
|
2020-07-31 01:46:05 +00:00
|
|
|
|
2020-07-15 16:23:56 +00:00
|
|
|
drc_dbg(1,"check pad %p rule '%s' cl %d\n", aRefPad, (const char*) rule->GetName().c_str(), minClearance );
|
|
|
|
|
2020-07-22 23:05:37 +00:00
|
|
|
auto padShape = pad->GetEffectiveShape();
|
|
|
|
if( padShape->Collide( aRefPad->GetEffectiveHoleShape(), minClearance, &actual ) )
|
2020-06-19 21:34:19 +00:00
|
|
|
{
|
2020-07-27 13:33:06 +00:00
|
|
|
DRC_ITEM* drcItem = DRC_ITEM::Create( DRCE_HOLE_CLEARANCE );
|
2020-06-19 21:34:19 +00:00
|
|
|
wxString msg;
|
|
|
|
|
|
|
|
msg.Printf( drcItem->GetErrorText() + _( " (%s clearance %s; actual %s)" ),
|
|
|
|
"",
|
|
|
|
MessageTextFromValue( userUnits(), minClearance, true ),
|
|
|
|
MessageTextFromValue( userUnits(), actual, true ) );
|
|
|
|
|
|
|
|
drcItem->SetErrorMessage( msg );
|
|
|
|
drcItem->SetItems( aRefPad, pad );
|
|
|
|
drcItem->SetViolatingRule( rule );
|
|
|
|
|
|
|
|
ReportWithMarker( drcItem, pad->GetPosition() );
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2020-07-27 13:33:06 +00:00
|
|
|
|
|
|
|
void test::DRC_TEST_PROVIDER_HOLE_CLEARANCE::addHole( const VECTOR2I& aLocation, int aRadius, BOARD_ITEM* aOwner )
|
|
|
|
{
|
|
|
|
DRILLED_HOLE hole;
|
|
|
|
|
|
|
|
hole.m_location = aLocation;
|
|
|
|
hole.m_drillRadius = aRadius;
|
|
|
|
hole.m_owner = aOwner;
|
|
|
|
|
|
|
|
m_largestRadius = std::max( m_largestRadius, aRadius );
|
|
|
|
|
|
|
|
m_holes.push_back( hole );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void test::DRC_TEST_PROVIDER_HOLE_CLEARANCE::testHoles2Holes()
|
|
|
|
{
|
|
|
|
// No need to check if we're ignoring DRCE_DRILLED_HOLES_TOO_CLOSE; if we are then we
|
|
|
|
// won't have collected any holes to test.
|
|
|
|
|
|
|
|
// Sort holes by X for performance. In the nested iteration we then need to look at
|
|
|
|
// following holes only while they are within the refHole's neighborhood as defined by
|
|
|
|
// the refHole radius + the minimum hole-to-hole clearance + the largest radius any of
|
|
|
|
// the following holes can have.
|
|
|
|
std::sort( m_holes.begin(), m_holes.end(),
|
|
|
|
[]( const DRILLED_HOLE& a, const DRILLED_HOLE& b )
|
|
|
|
{
|
|
|
|
if( a.m_location.x == b.m_location.x )
|
|
|
|
return a.m_location.y < b.m_location.y;
|
|
|
|
else
|
|
|
|
return a.m_location.x < b.m_location.x;
|
|
|
|
} );
|
|
|
|
|
|
|
|
for( size_t ii = 0; ii < m_holes.size(); ++ii )
|
|
|
|
{
|
|
|
|
DRILLED_HOLE& refHole = m_holes[ ii ];
|
|
|
|
int neighborhood = refHole.m_drillRadius + m_largestClearance + m_largestRadius;
|
|
|
|
|
|
|
|
for( size_t jj = ii + 1; jj < m_holes.size(); ++jj )
|
|
|
|
{
|
|
|
|
DRILLED_HOLE& checkHole = m_holes[ jj ];
|
|
|
|
|
|
|
|
if( refHole.m_location.x + neighborhood < checkHole.m_location.x )
|
|
|
|
break;
|
|
|
|
|
|
|
|
// Holes with identical locations are allowable
|
|
|
|
if( checkHole.m_location == refHole.m_location )
|
|
|
|
continue;
|
|
|
|
|
|
|
|
int actual = ( checkHole.m_location - refHole.m_location ).EuclideanNorm();
|
|
|
|
actual = std::max( 0, actual - checkHole.m_drillRadius - refHole.m_drillRadius );
|
|
|
|
|
|
|
|
DRC_RULE* rule = m_drcEngine->EvalRulesForItems( test::DRC_RULE_ID_T::DRC_RULE_ID_HOLE_CLEARANCE, refHole.m_owner, checkHole.m_owner );
|
|
|
|
int minClearance = rule->GetConstraint().GetValue().Min();
|
2020-07-31 01:46:05 +00:00
|
|
|
|
2020-07-27 13:33:06 +00:00
|
|
|
accountCheck( rule );
|
|
|
|
|
|
|
|
if( actual < minClearance )
|
|
|
|
{
|
|
|
|
DRC_ITEM* drcItem = DRC_ITEM::Create( DRCE_HOLE_CLEARANCE );
|
|
|
|
wxString msg;
|
|
|
|
|
|
|
|
msg.Printf( drcItem->GetErrorText() + _( " (clearance %s; actual %s)" ),
|
|
|
|
MessageTextFromValue( userUnits(), minClearance, true ),
|
|
|
|
MessageTextFromValue( userUnits(), actual, true ) );
|
|
|
|
|
|
|
|
drcItem->SetViolatingRule( rule );
|
|
|
|
drcItem->SetErrorMessage( msg );
|
|
|
|
drcItem->SetItems( refHole.m_owner, checkHole.m_owner );
|
|
|
|
|
|
|
|
ReportWithMarker( drcItem, refHole.m_location );
|
|
|
|
|
|
|
|
if( isErrorLimitExceeded( DRCE_HOLE_CLEARANCE ) )
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-06-19 21:34:19 +00:00
|
|
|
std::set<test::DRC_RULE_ID_T> test::DRC_TEST_PROVIDER_HOLE_CLEARANCE::GetMatchingRuleIds() const
|
|
|
|
{
|
|
|
|
return { DRC_RULE_ID_T::DRC_RULE_ID_HOLE_CLEARANCE };
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
namespace detail
|
|
|
|
{
|
|
|
|
static test::DRC_REGISTER_TEST_PROVIDER<test::DRC_TEST_PROVIDER_HOLE_CLEARANCE> dummy;
|
2020-07-31 01:46:05 +00:00
|
|
|
}
|