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.
This commit is contained in:
Seth Hillbrand 2018-09-20 07:44:55 -07:00
parent 8efcf81cf5
commit d139a49690
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] ) )
{
aDstContainer->Add( new CFILLEDCIRCLE2D( corners3DU[i - 1],
aClearanceValue.x * 2.0f * m_biuTo3Dunits,
aClearanceValue.x * m_biuTo3Dunits,
*aPad ) );
}
else
@ -477,7 +477,7 @@ void CINFO3D_VISU::createNewPadWithClearance( const D_PAD* aPad,
if( Is_segment_a_circle( corners3DU[i - 1], corners3DU[i & 3] ) )
{
aDstContainer->Add( new CFILLEDCIRCLE2D( corners3DU[i - 1],
rounding_radius * 2.0f * m_biuTo3Dunits,
rounding_radius * m_biuTo3Dunits,
*aPad ) );
}
else