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() )
|
||||
|
|
|
@ -183,7 +183,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
|
|||
m_averageViaHoleDiameter /= (float)m_viaCount;
|
||||
|
||||
// Prepare copper layers index and containers
|
||||
std::vector< PCB_LAYER_ID > layer_id;
|
||||
std::vector<PCB_LAYER_ID> layer_id;
|
||||
layer_id.clear();
|
||||
layer_id.reserve( m_copperLayersCount );
|
||||
|
||||
|
@ -308,8 +308,8 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
|
|||
{
|
||||
// Add through hole object
|
||||
m_throughHoleOds.Add( new FILLED_CIRCLE_2D( via_center,
|
||||
hole_inner_radius + thickness,
|
||||
*track ) );
|
||||
hole_inner_radius + thickness,
|
||||
*track ) );
|
||||
m_throughHoleViaOds.Add( new FILLED_CIRCLE_2D( via_center,
|
||||
hole_inner_radius + thickness,
|
||||
*track ) );
|
||||
|
@ -879,7 +879,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
|
|||
// Vertical walls (layer thickness) around shapes is really time consumming
|
||||
// They are built on request
|
||||
bool buildVerticalWallsForTechLayers = m_Cfg->m_Render.opengl_copper_thickness
|
||||
&& m_Cfg->m_Render.engine == RENDER_ENGINE::OPENGL;
|
||||
&& m_Cfg->m_Render.engine == RENDER_ENGINE::OPENGL;
|
||||
|
||||
static const PCB_LAYER_ID teckLayerList[] = {
|
||||
B_Adhes,
|
||||
|
@ -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