1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0027275: Unused formal parameter in BSplCLib::EvalBsplineBasis

Unused formal parameter is deleted.
This commit is contained in:
aml 2016-03-17 14:22:22 +03:00 committed by bugmaster
parent 9a9a3edfd8
commit 6143f12f36
9 changed files with 18 additions and 23 deletions

View File

@ -3211,8 +3211,7 @@ void BSplCLib::Eval
BSplCLib_LocalMatrix BsplineBasis (LocalRequest, Order);
ErrorCode =
BSplCLib::EvalBsplineBasis(1,
LocalRequest,
BSplCLib::EvalBsplineBasis(LocalRequest,
Order,
FlatKnots,
LocalParameter,
@ -3410,8 +3409,7 @@ void BSplCLib::Eval
BSplCLib_LocalMatrix BsplineBasis (LocalRequest, Order);
ErrorCode =
BSplCLib::EvalBsplineBasis(1,
LocalRequest,
BSplCLib::EvalBsplineBasis(LocalRequest,
Order,
FlatKnots,
LocalParameter,

View File

@ -702,7 +702,13 @@ public:
//! value of Nth derivative of first non vanishing
//! Bspline function which has Index FirstNonZeroBsplineIndex
//! if N <= DerivativeOrder + 1
Standard_EXPORT static Standard_Integer EvalBsplineBasis (const Standard_Integer Side, const Standard_Integer DerivativeOrder, const Standard_Integer Order, const TColStd_Array1OfReal& FlatKnots, const Standard_Real Parameter, Standard_Integer& FirstNonZeroBsplineIndex, math_Matrix& BsplineBasis, const Standard_Boolean isPeriodic = Standard_False);
Standard_EXPORT static Standard_Integer EvalBsplineBasis (const Standard_Integer DerivativeOrder,
const Standard_Integer Order,
const TColStd_Array1OfReal& FlatKnots,
const Standard_Real Parameter,
Standard_Integer& FirstNonZeroBsplineIndex,
math_Matrix& BsplineBasis,
const Standard_Boolean isPeriodic = Standard_False);
//! This Builds a fully blown Matrix of
//! (ni)

View File

@ -346,8 +346,7 @@ BSplCLib::BuildBSpMatrix(const TColStd_Array1OfReal& Parameters,
for (ii = Parameters.Lower() ; ii <= Parameters.Upper() ; ii++) {
ErrorCode =
BSplCLib::EvalBsplineBasis(1,
ContactOrderArray(ii),
BSplCLib::EvalBsplineBasis(ContactOrderArray(ii),
Order,
FlatKnots,
Parameters(ii),
@ -433,9 +432,7 @@ BSplCLib::FactorBandedMatrix(math_Matrix& Matrix,
Standard_Integer
BSplCLib::EvalBsplineBasis
//(const Standard_Integer Side, // = 1 rigth side, -1 left side
(const Standard_Integer , // = 1 rigth side, -1 left side
const Standard_Integer DerivativeRequest,
(const Standard_Integer DerivativeRequest,
const Standard_Integer Order,
const TColStd_Array1OfReal& FlatKnots,
const Standard_Real Parameter,

View File

@ -1230,8 +1230,7 @@ void BSplCLib::MovePoint (const Standard_Real U,
math_Matrix BSplineBasis(1, 1,
1, Degree+1);
Standard_Integer ErrorCode =
BSplCLib::EvalBsplineBasis(1,
0,
BSplCLib::EvalBsplineBasis(0,
Degree+1,
FlatKnots,
U,

View File

@ -2805,8 +2805,7 @@ void BSplSLib::MovePoint (const Standard_Real U,
Standard_Integer UFirstNonZeroBsplineIndex;
math_Matrix UBSplineBasis(1, 1,
1, UDegree+1);
Standard_Integer ErrorCod1 = BSplCLib::EvalBsplineBasis(1,
0,
Standard_Integer ErrorCod1 = BSplCLib::EvalBsplineBasis(0,
UDegree+1,
UFlatKnots,
U,
@ -2816,8 +2815,7 @@ void BSplSLib::MovePoint (const Standard_Real U,
Standard_Integer VFirstNonZeroBsplineIndex;
math_Matrix VBSplineBasis(1, 1,
1, VDegree+1);
Standard_Integer ErrorCod2 = BSplCLib::EvalBsplineBasis(1,
0,
Standard_Integer ErrorCod2 = BSplCLib::EvalBsplineBasis(0,
VDegree+1,
VFlatKnots,
V,

View File

@ -60,7 +60,7 @@ Standard_Boolean FairCurve_DistributionOfJerk::Value(const math_Vector& TParam,
// Dans EvalBsplineBasis C"' <=> DerivOrder = 4
// et il faut ajouter 1 rang dans la matrice Base => 5 rangs
ier = BSplCLib::EvalBsplineBasis(1, 3, MyBSplOrder,
ier = BSplCLib::EvalBsplineBasis(3, MyBSplOrder,
MyFlatKnots->Array1(), TParam(TParam.Lower()),
FirstNonZero, Base );
if (ier != 0) return Standard_False;

View File

@ -55,7 +55,7 @@ Standard_Boolean FairCurve_DistributionOfSagging::Value(const math_Vector& TPara
// Dans EvalBsplineBasis C" <=> DerivOrder = 3
// et il faut ajouter 1 rang dans la matrice Base => 4 rang
ier = BSplCLib::EvalBsplineBasis(1, 2, MyBSplOrder,
ier = BSplCLib::EvalBsplineBasis(2, MyBSplOrder,
MyFlatKnots->Array1(), TParam(TParam.Lower()),
FirstNonZero, Base );
if (ier != 0) return Standard_False;

View File

@ -62,7 +62,7 @@ Standard_Boolean FairCurve_DistributionOfTension::Value(const math_Vector& TPara
// Dans EvalBsplineBasis C' <=> DerivOrder = 2
// et il faut ajouter 1 rang dans la matrice Base => 3 rang
ier = BSplCLib::EvalBsplineBasis( 1, 1, MyBSplOrder,
ier = BSplCLib::EvalBsplineBasis(1, MyBSplOrder,
MyFlatKnots->Array1(), TParam(TParam.Lower()),
FirstNonZero, Base );
if (ier != 0) return Standard_False;

View File

@ -107,7 +107,6 @@ Standard_Real GeomLib_DenominatorMultiplier::Value(const Standard_Real UParamet
Standard_Integer index,i;
BSplCLib::EvalBsplineBasis(1,
1,
4,
myKnotFlatVector,
0.0,
@ -116,7 +115,6 @@ Standard_Real GeomLib_DenominatorMultiplier::Value(const Standard_Real UParamet
B1prim0=BSplineBasisDeriv(2,2);
BSplCLib::EvalBsplineBasis(1,
1,
4,
myKnotFlatVector,
1.0,
@ -125,8 +123,7 @@ Standard_Real GeomLib_DenominatorMultiplier::Value(const Standard_Real UParamet
Bprelastprim1=BSplineBasisDeriv(2,3);
math_Matrix BSplineBasisValue(1,1,1,4,0.0);
BSplCLib::EvalBsplineBasis(1,
0,
BSplCLib::EvalBsplineBasis(0,
4,
myKnotFlatVector,
UParameter,