1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-16 10:08:36 +03:00

0022989: BSplCLib::Reparametrize() fails on near knots

This commit is contained in:
abv 2012-03-15 08:50:00 +04:00 committed by bugmaster
parent 9530af2780
commit d0ad288a66

View File

@ -674,7 +674,7 @@ void BSplCLib::Reparametrize
//for CheckCurveData //for CheckCurveData
Standard_Real Eps = Epsilon( Abs(Knots(i-1)) ); Standard_Real Eps = Epsilon( Abs(Knots(i-1)) );
if (Knots(i) - Knots(i-1) <= Eps) if (Knots(i) - Knots(i-1) <= Eps)
Knots(i) += 1.1*Eps; Knots(i) = NextAfter (Knots(i-1) + Eps, RealLast());
K1 = K2; K1 = K2;
} }