PNS: even more free performance
If this doesn't work, we have bigger problems
This commit is contained in:
parent
2d9bac804c
commit
ec6995697d
|
@ -81,6 +81,8 @@ public:
|
||||||
PNS::CONSTRAINT* aConstraint ) override;
|
PNS::CONSTRAINT* aConstraint ) override;
|
||||||
virtual wxString NetName( int aNet ) override;
|
virtual wxString NetName( int aNet ) override;
|
||||||
|
|
||||||
|
int ClearanceEpsilon() const { return m_clearanceEpsilon; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int holeRadius( const PNS::ITEM* aItem ) const;
|
int holeRadius( const PNS::ITEM* aItem ) const;
|
||||||
int matchDpSuffix( const wxString& aNetName, wxString& aComplementNet, wxString& aBaseDpName );
|
int matchDpSuffix( const wxString& aNetName, wxString& aComplementNet, wxString& aBaseDpName );
|
||||||
|
@ -1363,7 +1365,7 @@ void PNS_KICAD_IFACE_BASE::SyncWorld( PNS::NODE *aWorld )
|
||||||
m_ruleResolver = new PNS_PCBNEW_RULE_RESOLVER( m_board, this );
|
m_ruleResolver = new PNS_PCBNEW_RULE_RESOLVER( m_board, this );
|
||||||
|
|
||||||
aWorld->SetRuleResolver( m_ruleResolver );
|
aWorld->SetRuleResolver( m_ruleResolver );
|
||||||
aWorld->SetMaxClearance( 1.5 * worstClearance );
|
aWorld->SetMaxClearance( worstClearance + m_ruleResolver->ClearanceEpsilon() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue