Cleanup warnings in the step exporter
This commit is contained in:
parent
39d5cc31d4
commit
066a609b39
|
@ -45,8 +45,8 @@ public:
|
|||
m_useDrillOrigin( false ),
|
||||
m_includeExcludedBom( true ),
|
||||
m_substModels( true ),
|
||||
m_boardOnly( false ),
|
||||
m_minDistance( 0.00001 ) {};
|
||||
m_minDistance( STEPEXPORT_MIN_DISTANCE ),
|
||||
m_boardOnly( false ) {};
|
||||
|
||||
wxString m_outputFile;
|
||||
|
||||
|
@ -58,8 +58,7 @@ public:
|
|||
bool m_includeExcludedBom;
|
||||
bool m_substModels;
|
||||
double m_minDistance;
|
||||
|
||||
bool m_boardOnly;
|
||||
bool m_boardOnly;
|
||||
};
|
||||
|
||||
class EXPORTER_STEP
|
||||
|
|
|
@ -228,22 +228,6 @@ bool STEP_PCB_MODEL::AddPadHole( const PAD* aPad )
|
|||
}
|
||||
|
||||
// slotted hole
|
||||
double angle_offset = 0.0;
|
||||
double rad; // radius of the slot
|
||||
double hlen; // half length of the slot
|
||||
|
||||
if( aPad->GetDrillSize().x < aPad->GetDrillSize().y )
|
||||
{
|
||||
angle_offset = M_PI_2;
|
||||
rad = aPad->GetDrillSize().x * 0.5;
|
||||
hlen = aPad->GetDrillSize().y * 0.5 - rad;
|
||||
}
|
||||
else
|
||||
{
|
||||
rad = aPad->GetDrillSize().y * 0.5;
|
||||
hlen = aPad->GetDrillSize().x * 0.5 - rad;
|
||||
}
|
||||
|
||||
SHAPE_POLY_SET holeOutlines;
|
||||
if( !aPad->TransformHoleToPolygon( holeOutlines, 0, m_maxError, ERROR_INSIDE ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue