1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0031381: Foundation Classes -wrong evaluations for rational BSpline curves using Adaptor curves

BSplCLib_Cache.cxx - it is forbidden zeroing derivatives for rational splines when derivative order more than degree

bug31381 - test case added
This commit is contained in:
ifv
2020-02-20 14:42:47 +03:00
committed by bugmaster
parent ae87bb87d0
commit f732ea1ab5
2 changed files with 16 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ void BSplCLib_Cache::CalculateDerivative(const Standard_Real& theParameter,
// When the degree of curve is lesser than the requested derivative,
// nullify array cells corresponding to greater derivatives
Standard_Integer aDerivative = theDerivative;
if (myParams.Degree < theDerivative)
if (!myIsRational && myParams.Degree < theDerivative)
{
aDerivative = myParams.Degree;
for (Standard_Integer ind = myParams.Degree * aDimension; ind < (theDerivative + 1) * aDimension; ind++)