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:
parent
97c5e0a835
commit
2ae8f6337d
|
@ -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