3d-viewer: corrected rrect zero-length radius

Previous commit mistakenly included the full clearance for the rounded
rectangle circle.  The CFILLEDCIRCLE2d takes the radius rather than the
diameter.

( cherry-picked from d139a4969 )
This commit is contained in:
Seth Hillbrand 2018-09-20 07:44:55 -07:00
parent 97c5e0a835
commit 2ae8f6337d
1 changed files with 2 additions and 2 deletions

View File

@ -425,7 +425,7 @@ void CINFO3D_VISU::createNewPadWithClearance( const D_PAD* aPad,
if( Is_segment_a_circle( corners3DU[i - 1], corners3DU[i & 3] ) ) if( Is_segment_a_circle( corners3DU[i - 1], corners3DU[i & 3] ) )
{ {
aDstContainer->Add( new CFILLEDCIRCLE2D( corners3DU[i - 1], aDstContainer->Add( new CFILLEDCIRCLE2D( corners3DU[i - 1],
aClearanceValue.x * 2.0f * m_biuTo3Dunits, aClearanceValue.x * m_biuTo3Dunits,
*aPad ) ); *aPad ) );
} }
else else
@ -477,7 +477,7 @@ void CINFO3D_VISU::createNewPadWithClearance( const D_PAD* aPad,
if( Is_segment_a_circle( corners3DU[i - 1], corners3DU[i & 3] ) ) if( Is_segment_a_circle( corners3DU[i - 1], corners3DU[i & 3] ) )
{ {
aDstContainer->Add( new CFILLEDCIRCLE2D( corners3DU[i - 1], aDstContainer->Add( new CFILLEDCIRCLE2D( corners3DU[i - 1],
rounding_radius * 2.0f * m_biuTo3Dunits, rounding_radius * m_biuTo3Dunits,
*aPad ) ); *aPad ) );
} }
else else