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:
Tomasz Wlostowski
2015-07-27 21:46:47 +02:00
committed by Maciej Suminski
parent 63b35f40a7
commit 1d7e49a45c
6 changed files with 5 additions and 22 deletions
+1 -1
View File
@@ -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 );