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:
parent
8efcf81cf5
commit
d139a49690
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue