From: abv Date: Thu, 15 Mar 2012 04:50:00 +0000 (+0400) Subject: 0022989: BSplCLib::Reparametrize() fails on near knots X-Git-Tag: V6_5_3_beta1~37 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=d0ad288a66affe89ca7a68a2767aee3696a0c8e5;p=occt-copy.git 0022989: BSplCLib::Reparametrize() fails on near knots --- diff --git a/src/BSplCLib/BSplCLib.cxx b/src/BSplCLib/BSplCLib.cxx index 7147f995ce..e230eb21ba 100755 --- a/src/BSplCLib/BSplCLib.cxx +++ b/src/BSplCLib/BSplCLib.cxx @@ -674,7 +674,7 @@ void BSplCLib::Reparametrize //for CheckCurveData Standard_Real Eps = Epsilon( Abs(Knots(i-1)) ); if (Knots(i) - Knots(i-1) <= Eps) - Knots(i) += 1.1*Eps; + Knots(i) = NextAfter (Knots(i-1) + Eps, RealLast()); K1 = K2; }