router: use either copper or hole clearance, whichever is larger, when checking track -> hole collisions
(cherry picked from commit 990281a897
)
This commit is contained in:
parent
92ba60628e
commit
4694a2622e
|
@ -392,10 +392,12 @@ NODE::OPT_OBSTACLE NODE::NearestObstacle( const LINE* aLine, int aKindMask,
|
|||
|
||||
if( obstacle.m_item->Hole() )
|
||||
{
|
||||
clearance = GetHoleClearance( obstacle.m_item, aLine, aUseClearanceEpsilon )
|
||||
+ aLine->Width() / 2;
|
||||
obstacleHull = obstacle.m_item->HoleHull( clearance, 0, layer );
|
||||
//debugDecorator->AddLine( obstacleHull, 4 );
|
||||
clearance = GetHoleClearance( obstacle.m_item, aLine, aUseClearanceEpsilon );
|
||||
int copperClearance = GetClearance( obstacle.m_item, aLine, aUseClearanceEpsilon );
|
||||
|
||||
clearance = std::max( clearance, copperClearance );
|
||||
|
||||
obstacleHull = obstacle.m_item->HoleHull( clearance, aLine->Width(), layer );
|
||||
|
||||
intersectingPts.clear();
|
||||
HullIntersection( obstacleHull, aLine->CLine(), intersectingPts );
|
||||
|
|
Loading…
Reference in New Issue