Reverted commits that remove boost::polygon dependency (need more testing).
This commit is contained in:
@@ -493,9 +493,10 @@ void BRDITEMS_PLOTTER::PlotTextePcb( TEXTE_PCB* pt_texte )
|
||||
*/
|
||||
void BRDITEMS_PLOTTER::PlotFilledAreas( ZONE_CONTAINER* aZone )
|
||||
{
|
||||
const SHAPE_POLY_SET& polysList = aZone->GetFilledPolysList();
|
||||
const CPOLYGONS_LIST& polysList = aZone->GetFilledPolysList();
|
||||
unsigned imax = polysList.GetCornersCount();
|
||||
|
||||
if( polysList.IsEmpty() )
|
||||
if( imax == 0 ) // Nothing to draw
|
||||
return;
|
||||
|
||||
// We need a buffer to store corners coordinates:
|
||||
@@ -510,12 +511,12 @@ void BRDITEMS_PLOTTER::PlotFilledAreas( ZONE_CONTAINER* aZone )
|
||||
*
|
||||
* in non filled mode the outline is plotted, but not the filling items
|
||||
*/
|
||||
for( SHAPE_POLY_SET::CONST_ITERATOR ic = polysList.CIterate(); ic; ++ic )
|
||||
for( unsigned ic = 0; ic < imax; ic++ )
|
||||
{
|
||||
wxPoint pos( ic->x, ic->y );
|
||||
wxPoint pos = polysList.GetPos( ic );
|
||||
cornerList.push_back( pos );
|
||||
|
||||
if( ic.IsEndContour() ) // Plot the current filled area outline
|
||||
if( polysList.IsEndContour( ic ) ) // Plot the current filled area outline
|
||||
{
|
||||
// First, close the outline
|
||||
if( cornerList[0] != cornerList[cornerList.size() - 1] )
|
||||
|
||||
Reference in New Issue
Block a user