Don't use epsilon when calculating pushout force in dp placer.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16210
(cherry picked from commit ff9d834e31
)
This commit is contained in:
parent
dbf5455656
commit
af99c9da34
|
@ -159,7 +159,7 @@ bool DIFF_PAIR_PLACER::propagateDpHeadForces ( const VECTOR2I& aP, VECTOR2I& aNe
|
||||||
if( !obs || handled.count( obs->m_item ) )
|
if( !obs || handled.count( obs->m_item ) )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
int clearance = m_currentNode->GetClearance( obs->m_item, &m_currentTrace.PLine() );
|
int clearance = m_currentNode->GetClearance( obs->m_item, &m_currentTrace.PLine(), false );
|
||||||
|
|
||||||
if( obs->m_item->Shape()->Collide( virtHead.Shape(), clearance, &force ) )
|
if( obs->m_item->Shape()->Collide( virtHead.Shape(), clearance, &force ) )
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace PNS {
|
||||||
|
|
||||||
bool VIA::PushoutForce( NODE* aNode, const ITEM* aOther, VECTOR2I& aForce )
|
bool VIA::PushoutForce( NODE* aNode, const ITEM* aOther, VECTOR2I& aForce )
|
||||||
{
|
{
|
||||||
int clearance = aNode->GetClearance( this, aOther );
|
int clearance = aNode->GetClearance( this, aOther, false );
|
||||||
VECTOR2I elementForces[4], force;
|
VECTOR2I elementForces[4], force;
|
||||||
size_t nf = 0;
|
size_t nf = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue