Cleanup.
This commit is contained in:
parent
4d8537fcfa
commit
7e5a6371c1
|
@ -646,9 +646,6 @@ void D_PAD::TransformShapeWithClearanceToPolygon( SHAPE_POLY_SET& aCornerBuffer,
|
||||||
outline.Rotate( -DECIDEG2RAD( m_orient ) );
|
outline.Rotate( -DECIDEG2RAD( m_orient ) );
|
||||||
outline.Move( VECTOR2I( m_pos ) );
|
outline.Move( VECTOR2I( m_pos ) );
|
||||||
|
|
||||||
// TODO: do we need the Simplify() & Fracture() if we're not inflating?
|
|
||||||
outline.Simplify( SHAPE_POLY_SET::PM_FAST );
|
|
||||||
|
|
||||||
if( aClearanceValue )
|
if( aClearanceValue )
|
||||||
{
|
{
|
||||||
int numSegs = std::max( GetArcToSegmentCount( aClearanceValue, aError, 360.0 ),
|
int numSegs = std::max( GetArcToSegmentCount( aClearanceValue, aError, 360.0 ),
|
||||||
|
@ -656,9 +653,10 @@ void D_PAD::TransformShapeWithClearanceToPolygon( SHAPE_POLY_SET& aCornerBuffer,
|
||||||
int clearance = aClearanceValue + GetCircleToPolyCorrection( aError );
|
int clearance = aClearanceValue + GetCircleToPolyCorrection( aError );
|
||||||
|
|
||||||
outline.Inflate( clearance, numSegs );
|
outline.Inflate( clearance, numSegs );
|
||||||
|
outline.Simplify( SHAPE_POLY_SET::PM_FAST );
|
||||||
|
outline.Fracture( SHAPE_POLY_SET::PM_FAST );
|
||||||
}
|
}
|
||||||
|
|
||||||
outline.Fracture( SHAPE_POLY_SET::PM_FAST );
|
|
||||||
aCornerBuffer.Append( outline );
|
aCornerBuffer.Append( outline );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue