46 int checkedHatches = 0;
48 for(
const FOOTPRINT* fp : m_board->Footprints() )
50 for(
const ZONE* zone : fp->Zones() )
52 BOX2I zoneBBox = zone->GetBoundingBox();
54 BOOST_CHECK_MESSAGE( fp->GetBoundingBox().Intersects( zoneBBox ),
55 "Embedded zone of " << fp->GetReference()
56 <<
" is separated from its footprint" );
58 for(
const SEG& hatch : zone->GetHatchLines() )
62 BOOST_CHECK_MESSAGE( zoneBBox.
Contains( hatch.A ) && zoneBBox.
Contains( hatch.B ),
63 "Hatch line of " << fp->GetReference()
64 <<
" lies outside the zone outline" );
71 BOOST_CHECK_GT( checkedZones, 0 );
72 BOOST_CHECK_GT( checkedHatches, 0 );