Browse Source

Cleanup.

pull/16/head
Jeff Young 5 years ago
parent
commit
7e5a6371c1
  1. 6
      pcbnew/board_items_to_polygon_shape_transform.cpp

6
pcbnew/board_items_to_polygon_shape_transform.cpp

@ -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…
Cancel
Save