Use arc mid point for footprint library parity DRC testing.
The arc center is a pseudo coordinate which is calculated for drawing purposes. This mid point is fixed unless the arc is modified which should result in more reliable arc parity footprint library DRC testing. Also change EDA_SHAPE::Compare() to use the arc mid point. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15917
This commit is contained in:
@@ -2147,7 +2147,7 @@ int EDA_SHAPE::Compare( const EDA_SHAPE* aOther ) const
|
||||
|
||||
if( m_shape == SHAPE_T::ARC )
|
||||
{
|
||||
TEST_PT( m_arcCenter, aOther->m_arcCenter );
|
||||
TEST_PT( GetArcMid(), aOther->GetArcMid() );
|
||||
}
|
||||
else if( m_shape == SHAPE_T::BEZIER )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user