Cleanup.
This commit is contained in:
parent
6f49b57f9b
commit
19b00b5d57
|
@ -613,8 +613,9 @@ void BOARD_ADAPTER::addShape( const PCB_SHAPE* aShape, CONTAINER_2D_BASE* aConta
|
|||
aContainer->Add( new FILLED_CIRCLE_2D( center3DU, outer_radius3DU, *aOwner ) );
|
||||
else
|
||||
aContainer->Add( new RING_2D( center3DU, inner_radius3DU, outer_radius3DU, *aOwner ) );
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case SHAPE_T::RECT:
|
||||
if( aShape->IsFilled() )
|
||||
|
|
|
@ -911,8 +911,10 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
|
|||
continue;
|
||||
|
||||
if( aStatusReporter )
|
||||
aStatusReporter->Report( wxString::Format(
|
||||
_( "Build Tech layer %d" ), (int)curr_layer_id ) );
|
||||
{
|
||||
aStatusReporter->Report( wxString::Format( _( "Build Tech layer %d" ),
|
||||
(int) curr_layer_id ) );
|
||||
}
|
||||
|
||||
BVH_CONTAINER_2D *layerContainer = new BVH_CONTAINER_2D;
|
||||
m_layerMap[curr_layer_id] = layerContainer;
|
||||
|
|
|
@ -34,13 +34,16 @@
|
|||
#include <footprint.h>
|
||||
|
||||
|
||||
/*
|
||||
* This is used to draw pad outlines on silk layers.
|
||||
*/
|
||||
void BOARD_ADAPTER::buildPadOutlineAsPolygon( const PAD* aPad, SHAPE_POLY_SET& aCornerBuffer,
|
||||
int aWidth ) const
|
||||
{
|
||||
if( aPad->GetShape() == PAD_SHAPE::CIRCLE ) // Draw a ring
|
||||
{
|
||||
TransformRingToPolygon( aCornerBuffer, aPad->ShapePos(), aPad->GetSize().x / 2,
|
||||
aWidth, ARC_HIGH_DEF, ERROR_INSIDE );
|
||||
TransformRingToPolygon( aCornerBuffer, aPad->ShapePos(), aPad->GetSize().x / 2, aWidth,
|
||||
ARC_HIGH_DEF, ERROR_INSIDE );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -53,8 +56,7 @@ void BOARD_ADAPTER::buildPadOutlineAsPolygon( const PAD* aPad, SHAPE_POLY_SET& a
|
|||
const VECTOR2I& a = path.CPoint( ii );
|
||||
const VECTOR2I& b = path.CPoint( ii + 1 );
|
||||
|
||||
TransformOvalToPolygon( aCornerBuffer, a, b, aWidth, ARC_HIGH_DEF,
|
||||
ERROR_INSIDE );
|
||||
TransformOvalToPolygon( aCornerBuffer, a, b, aWidth, ARC_HIGH_DEF, ERROR_INSIDE );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue