From ff9d834e3158586fb8b74c40f1c91c70c1667573 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 3 Dec 2023 16:47:41 +0000 Subject: [PATCH] Don't use epsilon when calculating pushout force in dp placer. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16210 --- pcbnew/router/pns_diff_pair_placer.cpp | 2 +- pcbnew/router/pns_via.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/router/pns_diff_pair_placer.cpp b/pcbnew/router/pns_diff_pair_placer.cpp index 7f16a4e7bf..b97dd5e8c9 100644 --- a/pcbnew/router/pns_diff_pair_placer.cpp +++ b/pcbnew/router/pns_diff_pair_placer.cpp @@ -158,7 +158,7 @@ bool DIFF_PAIR_PLACER::propagateDpHeadForces ( const VECTOR2I& aP, VECTOR2I& aNe if( !obs || handled.count( obs->m_item ) ) 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 ) ) { diff --git a/pcbnew/router/pns_via.cpp b/pcbnew/router/pns_via.cpp index 6ada741162..dfc85a4842 100644 --- a/pcbnew/router/pns_via.cpp +++ b/pcbnew/router/pns_via.cpp @@ -32,7 +32,7 @@ namespace PNS { 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; size_t nf = 0;