mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0027275: Unused formal parameter in BSplCLib::EvalBsplineBasis
Unused formal parameter is deleted.
This commit is contained in:
parent
9a9a3edfd8
commit
6143f12f36
@ -3211,8 +3211,7 @@ void BSplCLib::Eval
|
|||||||
|
|
||||||
BSplCLib_LocalMatrix BsplineBasis (LocalRequest, Order);
|
BSplCLib_LocalMatrix BsplineBasis (LocalRequest, Order);
|
||||||
ErrorCode =
|
ErrorCode =
|
||||||
BSplCLib::EvalBsplineBasis(1,
|
BSplCLib::EvalBsplineBasis(LocalRequest,
|
||||||
LocalRequest,
|
|
||||||
Order,
|
Order,
|
||||||
FlatKnots,
|
FlatKnots,
|
||||||
LocalParameter,
|
LocalParameter,
|
||||||
@ -3410,8 +3409,7 @@ void BSplCLib::Eval
|
|||||||
BSplCLib_LocalMatrix BsplineBasis (LocalRequest, Order);
|
BSplCLib_LocalMatrix BsplineBasis (LocalRequest, Order);
|
||||||
|
|
||||||
ErrorCode =
|
ErrorCode =
|
||||||
BSplCLib::EvalBsplineBasis(1,
|
BSplCLib::EvalBsplineBasis(LocalRequest,
|
||||||
LocalRequest,
|
|
||||||
Order,
|
Order,
|
||||||
FlatKnots,
|
FlatKnots,
|
||||||
LocalParameter,
|
LocalParameter,
|
||||||
|
@ -702,7 +702,13 @@ public:
|
|||||||
//! value of Nth derivative of first non vanishing
|
//! value of Nth derivative of first non vanishing
|
||||||
//! Bspline function which has Index FirstNonZeroBsplineIndex
|
//! Bspline function which has Index FirstNonZeroBsplineIndex
|
||||||
//! if N <= DerivativeOrder + 1
|
//! 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
|
//! This Builds a fully blown Matrix of
|
||||||
//! (ni)
|
//! (ni)
|
||||||
|
@ -346,8 +346,7 @@ BSplCLib::BuildBSpMatrix(const TColStd_Array1OfReal& Parameters,
|
|||||||
|
|
||||||
for (ii = Parameters.Lower() ; ii <= Parameters.Upper() ; ii++) {
|
for (ii = Parameters.Lower() ; ii <= Parameters.Upper() ; ii++) {
|
||||||
ErrorCode =
|
ErrorCode =
|
||||||
BSplCLib::EvalBsplineBasis(1,
|
BSplCLib::EvalBsplineBasis(ContactOrderArray(ii),
|
||||||
ContactOrderArray(ii),
|
|
||||||
Order,
|
Order,
|
||||||
FlatKnots,
|
FlatKnots,
|
||||||
Parameters(ii),
|
Parameters(ii),
|
||||||
@ -433,9 +432,7 @@ BSplCLib::FactorBandedMatrix(math_Matrix& Matrix,
|
|||||||
|
|
||||||
Standard_Integer
|
Standard_Integer
|
||||||
BSplCLib::EvalBsplineBasis
|
BSplCLib::EvalBsplineBasis
|
||||||
//(const Standard_Integer Side, // = 1 rigth side, -1 left side
|
(const Standard_Integer DerivativeRequest,
|
||||||
(const Standard_Integer , // = 1 rigth side, -1 left side
|
|
||||||
const Standard_Integer DerivativeRequest,
|
|
||||||
const Standard_Integer Order,
|
const Standard_Integer Order,
|
||||||
const TColStd_Array1OfReal& FlatKnots,
|
const TColStd_Array1OfReal& FlatKnots,
|
||||||
const Standard_Real Parameter,
|
const Standard_Real Parameter,
|
||||||
|
@ -1230,8 +1230,7 @@ void BSplCLib::MovePoint (const Standard_Real U,
|
|||||||
math_Matrix BSplineBasis(1, 1,
|
math_Matrix BSplineBasis(1, 1,
|
||||||
1, Degree+1);
|
1, Degree+1);
|
||||||
Standard_Integer ErrorCode =
|
Standard_Integer ErrorCode =
|
||||||
BSplCLib::EvalBsplineBasis(1,
|
BSplCLib::EvalBsplineBasis(0,
|
||||||
0,
|
|
||||||
Degree+1,
|
Degree+1,
|
||||||
FlatKnots,
|
FlatKnots,
|
||||||
U,
|
U,
|
||||||
|
@ -2805,8 +2805,7 @@ void BSplSLib::MovePoint (const Standard_Real U,
|
|||||||
Standard_Integer UFirstNonZeroBsplineIndex;
|
Standard_Integer UFirstNonZeroBsplineIndex;
|
||||||
math_Matrix UBSplineBasis(1, 1,
|
math_Matrix UBSplineBasis(1, 1,
|
||||||
1, UDegree+1);
|
1, UDegree+1);
|
||||||
Standard_Integer ErrorCod1 = BSplCLib::EvalBsplineBasis(1,
|
Standard_Integer ErrorCod1 = BSplCLib::EvalBsplineBasis(0,
|
||||||
0,
|
|
||||||
UDegree+1,
|
UDegree+1,
|
||||||
UFlatKnots,
|
UFlatKnots,
|
||||||
U,
|
U,
|
||||||
@ -2816,8 +2815,7 @@ void BSplSLib::MovePoint (const Standard_Real U,
|
|||||||
Standard_Integer VFirstNonZeroBsplineIndex;
|
Standard_Integer VFirstNonZeroBsplineIndex;
|
||||||
math_Matrix VBSplineBasis(1, 1,
|
math_Matrix VBSplineBasis(1, 1,
|
||||||
1, VDegree+1);
|
1, VDegree+1);
|
||||||
Standard_Integer ErrorCod2 = BSplCLib::EvalBsplineBasis(1,
|
Standard_Integer ErrorCod2 = BSplCLib::EvalBsplineBasis(0,
|
||||||
0,
|
|
||||||
VDegree+1,
|
VDegree+1,
|
||||||
VFlatKnots,
|
VFlatKnots,
|
||||||
V,
|
V,
|
||||||
|
@ -60,7 +60,7 @@ Standard_Boolean FairCurve_DistributionOfJerk::Value(const math_Vector& TParam,
|
|||||||
// Dans EvalBsplineBasis C"' <=> DerivOrder = 4
|
// Dans EvalBsplineBasis C"' <=> DerivOrder = 4
|
||||||
// et il faut ajouter 1 rang dans la matrice Base => 5 rangs
|
// 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()),
|
MyFlatKnots->Array1(), TParam(TParam.Lower()),
|
||||||
FirstNonZero, Base );
|
FirstNonZero, Base );
|
||||||
if (ier != 0) return Standard_False;
|
if (ier != 0) return Standard_False;
|
||||||
|
@ -55,7 +55,7 @@ Standard_Boolean FairCurve_DistributionOfSagging::Value(const math_Vector& TPara
|
|||||||
// Dans EvalBsplineBasis C" <=> DerivOrder = 3
|
// Dans EvalBsplineBasis C" <=> DerivOrder = 3
|
||||||
// et il faut ajouter 1 rang dans la matrice Base => 4 rang
|
// 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()),
|
MyFlatKnots->Array1(), TParam(TParam.Lower()),
|
||||||
FirstNonZero, Base );
|
FirstNonZero, Base );
|
||||||
if (ier != 0) return Standard_False;
|
if (ier != 0) return Standard_False;
|
||||||
|
@ -62,7 +62,7 @@ Standard_Boolean FairCurve_DistributionOfTension::Value(const math_Vector& TPara
|
|||||||
// Dans EvalBsplineBasis C' <=> DerivOrder = 2
|
// Dans EvalBsplineBasis C' <=> DerivOrder = 2
|
||||||
// et il faut ajouter 1 rang dans la matrice Base => 3 rang
|
// 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()),
|
MyFlatKnots->Array1(), TParam(TParam.Lower()),
|
||||||
FirstNonZero, Base );
|
FirstNonZero, Base );
|
||||||
if (ier != 0) return Standard_False;
|
if (ier != 0) return Standard_False;
|
||||||
|
@ -107,7 +107,6 @@ Standard_Real GeomLib_DenominatorMultiplier::Value(const Standard_Real UParamet
|
|||||||
Standard_Integer index,i;
|
Standard_Integer index,i;
|
||||||
|
|
||||||
BSplCLib::EvalBsplineBasis(1,
|
BSplCLib::EvalBsplineBasis(1,
|
||||||
1,
|
|
||||||
4,
|
4,
|
||||||
myKnotFlatVector,
|
myKnotFlatVector,
|
||||||
0.0,
|
0.0,
|
||||||
@ -116,7 +115,6 @@ Standard_Real GeomLib_DenominatorMultiplier::Value(const Standard_Real UParamet
|
|||||||
B1prim0=BSplineBasisDeriv(2,2);
|
B1prim0=BSplineBasisDeriv(2,2);
|
||||||
|
|
||||||
BSplCLib::EvalBsplineBasis(1,
|
BSplCLib::EvalBsplineBasis(1,
|
||||||
1,
|
|
||||||
4,
|
4,
|
||||||
myKnotFlatVector,
|
myKnotFlatVector,
|
||||||
1.0,
|
1.0,
|
||||||
@ -125,8 +123,7 @@ Standard_Real GeomLib_DenominatorMultiplier::Value(const Standard_Real UParamet
|
|||||||
Bprelastprim1=BSplineBasisDeriv(2,3);
|
Bprelastprim1=BSplineBasisDeriv(2,3);
|
||||||
|
|
||||||
math_Matrix BSplineBasisValue(1,1,1,4,0.0);
|
math_Matrix BSplineBasisValue(1,1,1,4,0.0);
|
||||||
BSplCLib::EvalBsplineBasis(1,
|
BSplCLib::EvalBsplineBasis(0,
|
||||||
0,
|
|
||||||
4,
|
4,
|
||||||
myKnotFlatVector,
|
myKnotFlatVector,
|
||||||
UParameter,
|
UParameter,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user