Better detection of degenerated PCB_ARC.
This commit is contained in:
parent
931401b5be
commit
51456d973b
|
@ -1177,8 +1177,9 @@ bool PCB_ARC::IsDegenerated( int aThreshold ) const
|
|||
// cannot be safely computed if the distance between mid and end points
|
||||
// is too small (a few internal units)
|
||||
|
||||
// len of both segments must be >= aThreshold to be not Degenerated arc
|
||||
return ( GetMid() - GetStart() ).EuclideanNorm() < aThreshold
|
||||
|| ( GetMid() - GetEnd() ).EuclideanNorm() < aThreshold;
|
||||
&& ( GetMid() - GetEnd() ).EuclideanNorm() < aThreshold;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue