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:
parent
f33b158696
commit
e33c611488
|
@ -1031,14 +1031,8 @@ void ZONE::GetInteractingZones( PCB_LAYER_ID aLayer, std::vector<ZONE*>* aSameNe
|
||||||
|
|
||||||
if( candidate->GetNetCode() == GetNetCode() )
|
if( candidate->GetNetCode() == GetNetCode() )
|
||||||
{
|
{
|
||||||
for( auto iter = m_Poly->CIterate(); iter; iter++ )
|
if( m_Poly->Collide( candidate->m_Poly ) )
|
||||||
{
|
aSameNetCollidingZones->push_back( candidate );
|
||||||
if( candidate->m_Poly->Collide( iter.Get(), epsilon ) )
|
|
||||||
{
|
|
||||||
aSameNetCollidingZones->push_back( candidate );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue