ArcToSegmentCount calcs need to use abs value of angle.

This commit is contained in:
Jeff Young 2022-01-19 14:51:36 +00:00
parent 9d5322cfdf
commit 9298da4ebc
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ const SHAPE_LINE_CHAIN SHAPE_ARC::ConvertToPolyline( double aAccuracy,
n = GetArcToSegmentCount( external_radius, aAccuracy, ca ); n = GetArcToSegmentCount( external_radius, aAccuracy, ca );
// Recalculate the effective error of approximation, that can be < aAccuracy // Recalculate the effective error of approximation, that can be < aAccuracy
int seg360 = n * 360.0 / ca.AsDegrees(); int seg360 = n * 360.0 / fabs( ca.AsDegrees() );
effectiveAccuracy = CircleToEndSegmentDeltaRadius( external_radius, seg360 ); effectiveAccuracy = CircleToEndSegmentDeltaRadius( external_radius, seg360 );
} }