Replace collision calls with ones that work.

I'm not sure why the old calls didn't work, but they reported "no
collision" between two overlapping zones.
This commit is contained in:
Jeff Young 2022-11-03 11:10:08 +00:00
parent f33b158696
commit e33c611488
1 changed files with 2 additions and 8 deletions

View File

@ -1031,14 +1031,8 @@ void ZONE::GetInteractingZones( PCB_LAYER_ID aLayer, std::vector<ZONE*>* aSameNe
if( candidate->GetNetCode() == GetNetCode() )
{
for( auto iter = m_Poly->CIterate(); iter; iter++ )
{
if( candidate->m_Poly->Collide( iter.Get(), epsilon ) )
{
if( m_Poly->Collide( candidate->m_Poly ) )
aSameNetCollidingZones->push_back( candidate );
break;
}
}
}
else
{