SHAPE_POLY_SET::Inflate(): correct arc approximation for negative offsets (deflation). Control circle->segments count explicitly in all Inflate() calls
This commit is contained in:
committed by
Maciej Suminski
parent
63b35f40a7
commit
1d7e49a45c
@@ -257,7 +257,7 @@ void SHAPE_POLY_SET::Inflate( int aFactor, int aCircleSegmentsCount )
|
||||
|
||||
PolyTree solution;
|
||||
|
||||
c.ArcTolerance = (double)aFactor / M_PI / aCircleSegmentsCount;
|
||||
c.ArcTolerance = (double)fabs( aFactor ) / M_PI / aCircleSegmentsCount;
|
||||
|
||||
c.Execute( solution, aFactor );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user