Browse Source

PNS: Don't use PNS margin to calc bump direction

The bump direction should only be concerned with physical points to
calculate the heuristic for loop-back otherwise we get too many false
positives.

Fixes https://gitlab.com/kicad/code/kicad/issues/3971
pull/16/head
Seth Hillbrand 6 years ago
parent
commit
4c2626f6b0
  1. 2
      pcbnew/router/pns_shove.cpp

2
pcbnew/router/pns_shove.cpp

@ -112,7 +112,7 @@ bool SHOVE::checkBumpDirection( const LINE& aCurrent, const LINE& aShoved ) cons
{
const SEG& ss = aCurrent.CSegment( 0 );
int dist = getClearance( &aCurrent, &aShoved ) + PNS_HULL_MARGIN;
int dist = getClearance( &aCurrent, &aShoved );
dist += aCurrent.Width() / 2;
dist += aShoved.Width() / 2;

Loading…
Cancel
Save