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:
@@ -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++)
|
||||
|
Reference in New Issue
Block a user