Cleanup warnings in the step exporter

This commit is contained in:
Marek Roszko 2022-11-12 21:52:54 -05:00
parent 39d5cc31d4
commit 066a609b39
2 changed files with 3 additions and 20 deletions

View File

@ -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

View File

@ -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 ) )
{