]> OCCT Git - occt-copy.git/commitdiff
# revert PerformCircular changes
authoroan <oan@opencascade.com>
Mon, 21 Oct 2019 16:33:32 +0000 (19:33 +0300)
committeroan <oan@opencascade.com>
Mon, 28 Oct 2019 10:47:19 +0000 (13:47 +0300)
src/GCPnts/GCPnts_TangentialDeflection.pxx

index f6476bab5e421f6d6b9101fb704c0528c5bb09b3..deadfb6309f2f1d51d607e6b6b15746bd90f462d 100644 (file)
@@ -228,7 +228,7 @@ void GCPnts_TangentialDeflection::PerformCircular (const TheCurve& C)
   const Standard_Real aDiff = lastu - firstu;
   // Round up number of points to satisfy curvatureDeflection more precisely
   Standard_Integer NbPoints = (Standard_Integer)Min(Ceiling(aDiff / Du), 1.0e+6);
-  NbPoints = Max(NbPoints, minNbPnts) - 1;
+  NbPoints = Max(NbPoints, minNbPnts - 1);
   Du       = aDiff / NbPoints;
 
   gp_Pnt P;