parent
c7e865e4a2
commit
a7b1448ccd
|
@ -351,7 +351,7 @@ private:
|
|||
void createPadWithMargin( const PAD *aPad, CONTAINER_2D_BASE* aDstContainer,
|
||||
PCB_LAYER_ID aLayer, const VECTOR2I& aMargin ) const;
|
||||
|
||||
OBJECT_2D* createPadWithHole( const PAD* aPad, CONTAINER_2D_BASE* aDstContainer,
|
||||
void createPadWithHole( const PAD* aPad, CONTAINER_2D_BASE* aDstContainer,
|
||||
int aInflateValue );
|
||||
|
||||
void addPads( const FOOTPRINT* aFootprint, CONTAINER_2D_BASE* aDstContainer,
|
||||
|
|
|
@ -467,13 +467,13 @@ void BOARD_ADAPTER::createPadWithMargin( const PAD* aPad, CONTAINER_2D_BASE* aCo
|
|||
}
|
||||
|
||||
|
||||
OBJECT_2D* BOARD_ADAPTER::createPadWithHole( const PAD* aPad, CONTAINER_2D_BASE* aDstContainer,
|
||||
void BOARD_ADAPTER::createPadWithHole( const PAD* aPad, CONTAINER_2D_BASE* aDstContainer,
|
||||
int aInflateValue )
|
||||
{
|
||||
if( !aPad->HasHole() )
|
||||
{
|
||||
wxLogTrace( m_logTrace, wxT( "BOARD_ADAPTER::createPadWithHole - found an invalid pad" ) );
|
||||
return nullptr;
|
||||
return;
|
||||
}
|
||||
|
||||
std::shared_ptr<SHAPE_SEGMENT> slot = aPad->GetEffectiveHoleShape();
|
||||
|
|
|
@ -1177,7 +1177,7 @@ bool PCB_ARC::IsDegenerated( int aThreshold ) const
|
|||
// cannot be safely computed if the distance between mid and end points
|
||||
// is too small (a few internal units)
|
||||
|
||||
// len of both segments must be >= aThreshold to be not Degenerated arc
|
||||
// len of both segments must be < aThreshold to be a very small degenerated arc
|
||||
return ( GetMid() - GetStart() ).EuclideanNorm() < aThreshold
|
||||
&& ( GetMid() - GetEnd() ).EuclideanNorm() < aThreshold;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue