OCC.PLib module¶
PLib means Polynomial functions library. This pkprovides basic computation functions forpolynomial functions.
-
class
Handle_PLib_Base
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_PLib_HermitJacobi
(*args)¶ Bases:
OCC.PLib.Handle_PLib_Base
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_PLib_JacobiPolynomial
(*args)¶ Bases:
OCC.PLib.Handle_PLib_Base
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
PLib_Base
(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared
-
D0
()¶ - Compute the values of the basis functions in u
Parameters: - U (float) –
- BasisValue (TColStd_Array1OfReal &) –
Return type: void
-
D1
()¶ - Compute the values and the derivatives values of the basis functions in u
Parameters: - U (float) –
- BasisValue (TColStd_Array1OfReal &) –
- BasisD1 (TColStd_Array1OfReal &) –
Return type: void
-
D2
()¶ - Compute the values and the derivatives values of the basis functions in u
Parameters: - U (float) –
- BasisValue (TColStd_Array1OfReal &) –
- BasisD1 (TColStd_Array1OfReal &) –
- BasisD2 (TColStd_Array1OfReal &) –
Return type: void
-
D3
()¶ - Compute the values and the derivatives values of the basis functions in u
Parameters: - U (float) –
- BasisValue (TColStd_Array1OfReal &) –
- BasisD1 (TColStd_Array1OfReal &) –
- BasisD2 (TColStd_Array1OfReal &) –
- BasisD3 (TColStd_Array1OfReal &) –
Return type: void
-
GetHandle
()¶
-
ReduceDegree
()¶ - Compute NewDegree <= MaxDegree so that MaxError is lower than Tol. MaxError can be greater than Tol if it is not possible to find a NewDegree <= MaxDegree. In this case NewDegree = MaxDegree
Parameters: Return type: void
-
ToCoefficients
()¶ - Convert the polynomial P(t) in the canonical base.
Parameters: Return type: void
-
thisown
¶ The membership flag
-
-
class
PLib_DoubleJacobiPolynomial
(*args)¶ Bases:
object
Return type: Parameters: - JacPolU (Handle_PLib_JacobiPolynomial &) –
- JacPolV (Handle_PLib_JacobiPolynomial &) –
Return type: -
AverageError
()¶ Parameters: Return type:
-
MaxError
()¶ Parameters: Return type:
-
MaxErrorU
()¶ Parameters: Return type:
-
MaxErrorV
()¶ Parameters: Return type:
-
ReduceDegree
()¶ Parameters: Return type:
-
TabMaxU
()¶ - returns myTabMaxU;
Return type: Handle_TColStd_HArray1OfReal
-
TabMaxV
()¶ - returns myTabMaxV;
Return type: Handle_TColStd_HArray1OfReal
-
U
()¶ - returns myJacPolU;
Return type: Handle_PLib_JacobiPolynomial
-
V
()¶ - returns myJacPolV;
Return type: Handle_PLib_JacobiPolynomial
-
WDoubleJacobiToCoefficients
()¶ Parameters: Return type:
-
thisown
¶ The membership flag
-
class
PLib_HermitJacobi
(*args)¶ Bases:
OCC.PLib.PLib_Base
- Initialize the polynomial class Degree has to be <= 30 ConstraintOrder has to be GeomAbs_C0 GeomAbs_C1 GeomAbs_C2
Parameters: - WorkDegree (int) –
- ConstraintOrder (GeomAbs_Shape) –
Return type: -
AverageError
()¶ Parameters: Return type:
-
GetHandle
()¶
-
MaxError
()¶ - This method computes the maximum error on the polynomial W(t) Q(t) obtained by missing the coefficients of JacCoeff from NewDegree +1 to Degree
Parameters: Return type:
-
thisown
¶ The membership flag
-
class
PLib_JacobiPolynomial
(*args)¶ Bases:
OCC.PLib.PLib_Base
- Initialize the polynomial class Degree has to be <= 30 ConstraintOrder has to be GeomAbs_C0 GeomAbs_C1 GeomAbs_C2
Parameters: - WorkDegree (int) –
- ConstraintOrder (GeomAbs_Shape) –
Return type: -
AverageError
()¶ Parameters: Return type:
-
GetHandle
()¶
-
MaxError
()¶ - This method computes the maximum error on the polynomial W(t) Q(t) obtained by missing the coefficients of JacCoeff from NewDegree +1 to Degree
Parameters: Return type:
-
MaxValue
()¶ - this method loads for k=0,q the maximum value of abs ( W(t)*Jk(t) )for t bellonging to [-1,1] This values are loaded is the array TabMax(0,myWorkDegree-2*(myNivConst+1)) MaxValue ( me ; TabMaxPointer : in out Real );
Parameters: TabMax (TColStd_Array1OfReal &) – Return type: None
-
Points
()¶ - returns the Jacobi Points for Gauss integration ie the positive values of the Legendre roots by increasing values NbGaussPoints is the number of points choosen for the integral computation. TabPoints (0,NbGaussPoints/2) TabPoints (0) is loaded only for the odd values of NbGaussPoints The possible values for NbGaussPoints are : 8, 10, 15, 20, 25, 30, 35, 40, 50, 61 NbGaussPoints must be greater than Degree
Parameters: - NbGaussPoints (int) –
- TabPoints (TColStd_Array1OfReal &) –
Return type:
-
Weights
()¶ - returns the Jacobi weigths for Gauss integration only for the positive values of the Legendre roots in the order they are given by the method Points NbGaussPoints is the number of points choosen for the integral computation. TabWeights (0,NbGaussPoints/2,0,Degree) TabWeights (0,.) are only loaded for the odd values of NbGaussPoints The possible values for NbGaussPoints are : 8 , 10 , 15 ,20 ,25 , 30, 35 , 40 , 50 , 61 NbGaussPoints must be greater than Degree
Parameters: - NbGaussPoints (int) –
- TabWeights (TColStd_Array2OfReal &) –
Return type:
-
thisown
¶ The membership flag
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
new_instancemethod
(func, inst, cls)¶
-
class
plib
¶ Bases:
object
-
static
Bin
()¶ - Returns the Binomial Cnp. N should be <= BSplCLib::MaxDegree().
Parameters: Return type:
-
static
CoefficientsPoles
()¶ Parameters: - Coefs (TColgp_Array2OfPnt) –
- WCoefs (TColStd_Array2OfReal &) –
- Poles (TColgp_Array2OfPnt) –
- WPoles (TColStd_Array2OfReal &) –
- Coefs –
- WCoefs –
- Poles –
- WPoles –
- Coefs –
- WCoefs –
- Poles –
- WPoles –
- dim (int) –
- Coefs –
- WCoefs –
- Poles –
- WPoles –
- Coefs –
- WCoefs –
- Poles –
- WPoles –
Return type: void
Return type: void
Return type: void
Return type: void
Return type: void
-
static
ConstraintOrder
()¶ - translates from Integer to GeomAbs_Shape
Parameters: NivConstr (int) – Return type: GeomAbs_Shape
-
static
EvalCubicHermite
()¶ - Performs the Cubic Hermite Interpolation of given series of points with given parameters with the requested derivative order. ValueArray stores the value at the first and last parameter. It has the following format : [0], [Dimension-1] : value at first param [Dimension], [Dimension + Dimension-1] : value at last param Derivative array stores the value of the derivatives at the first parameter and at the last parameter in the following format [0], [Dimension-1] : derivative at first param [Dimension], [Dimension + Dimension-1] : derivative at last param //! ParameterArray stores the first and last parameter in the following format : [0] : first parameter [1] : last parameter //! Results will store things in the following format with d = DerivativeOrder //! [0], [Dimension-1] : value [Dimension], [Dimension + Dimension-1] : first derivative //! [d *Dimension], [d*Dimension + Dimension-1]: dth derivative
Parameters: Return type:
-
static
EvalLagrange
()¶ - Performs the Lagrange Interpolation of given series of points with given parameters with the requested derivative order Results will store things in the following format with d = DerivativeOrder //! [0], [Dimension-1] : value [Dimension], [Dimension + Dimension-1] : first derivative //! [d *Dimension], [d*Dimension + Dimension-1]: dth derivative
Parameters: Return type:
-
static
EvalLength
()¶ Parameters: Return type: void
Return type: void
-
static
EvalPoly2Var
()¶ - Applies EvalPolynomial twice to evaluate the derivative of orders UDerivativeOrder in U, VDerivativeOrder in V at parameters U,V //! PolynomialCoeff are stored in the following fashion c00(1) …. c00(Dimension) c10(1) …. c10(Dimension) …. cm0(1) …. cm0(Dimension) …. c01(1) …. c01(Dimension) c11(1) …. c11(Dimension) …. cm1(1) …. cm1(Dimension) …. c0n(1) …. c0n(Dimension) c1n(1) …. c1n(Dimension) …. cmn(1) …. cmn(Dimension) //! where the polynomial is defined as : 2 m c00 + c10 U + c20 U + …. + cm0 U 2 m + c01 V + c11 UV + c21 U V + …. + cm1 U V n m n + …. + c0n V + …. + cmn U V //! with m = UDegree and n = VDegree //! Results stores the result in the following format //! f(1) f(2) …. f(Dimension) //! Warning: <Results> and <PolynomialCoeff> must be dimensioned properly
Parameters: Return type: void
-
static
EvalPolynomial
()¶ - Performs Horner method with synthethic division for derivatives parameter <U>, with <Degree> and <Dimension>. PolynomialCoeff are stored in the following fashion c0(1) c0(2) …. c0(Dimension) c1(1) c1(2) …. c1(Dimension) //! cDegree(1) cDegree(2) …. cDegree(Dimension) where the polynomial is defined as : //! 2 Degree c0 + c1 X + c2 X + …. cDegree X //! Results stores the result in the following format //! f(1) f(2) …. f(Dimension) (1) (1) (1) f (1) f (2) …. f (Dimension) //! (DerivativeRequest) (DerivativeRequest) f (1) f (Dimension) //! this just evaluates the point at parameter U //! Warning: <Results> and <PolynomialCoeff> must be dimensioned properly
Parameters: Return type: void
-
static
GetPoles
()¶ - Get from FP the coordinates of the poles.
Parameters: - FP (TColStd_Array1OfReal &) –
- Poles (TColgp_Array1OfPnt) –
Return type: void
- Get from FP the coordinates of the poles.
Parameters: - FP (TColStd_Array1OfReal &) –
- Poles (TColgp_Array1OfPnt) –
- Weights (TColStd_Array1OfReal &) –
Return type: void
- Get from FP the coordinates of the poles.
Parameters: - FP (TColStd_Array1OfReal &) –
- Poles (TColgp_Array1OfPnt2d) –
Return type: void
- Get from FP the coordinates of the poles.
Parameters: - FP (TColStd_Array1OfReal &) –
- Poles (TColgp_Array1OfPnt2d) –
- Weights (TColStd_Array1OfReal &) –
Return type: void
-
static
HermiteCoefficients
()¶ - This build the coefficient of Hermite’s polynomes on [FirstParameter, LastParameter] //! if j <= FirstOrder+1 then //! MatrixCoefs[i, j] = ith coefficient of the polynome H0,j-1 //! else //! MatrixCoefs[i, j] = ith coefficient of the polynome H1,k with k = j - FirstOrder - 2 //! return false if - |FirstParameter| > 100 - |LastParameter| > 100 - |FirstParameter| +|LastParameter| < 1/100 - |LastParameter - FirstParameter| / (|FirstParameter| +|LastParameter|) < 1/100
Parameters: Return type:
-
static
HermiteInterpolate
()¶ - Compute the coefficients in the canonical base of the polynomial satisfying the given constraints at the given parameters The array FirstContr(i,j) i=1,Dimension j=0,FirstOrder contains the values of the constraint at parameter FirstParameter idem for LastConstr
Parameters: Return type:
-
static
JacobiParameters
()¶ - Compute the number of points used for integral computations (NbGaussPoints) and the degree of Jacobi Polynomial (WorkDegree). ConstraintOrder has to be GeomAbs_C0, GeomAbs_C1 or GeomAbs_C2 Code: Code d’ init. des parametres de discretisation. = -5 = -4 = -3 = -2 = -1 = 1 calcul rapide avec precision moyenne. = 2 calcul rapide avec meilleure precision. = 3 calcul un peu plus lent avec bonne precision. = 4 calcul lent avec la meilleure precision possible.
Parameters: Return type: void
-
static
NivConstr
()¶ - translates from GeomAbs_Shape to Integer
Parameters: ConstraintOrder (GeomAbs_Shape) – Return type: int
-
static
NoDerivativeEvalPolynomial
()¶ - Same as above with DerivativeOrder = 0;
Parameters: Return type: void
-
static
NoWeights
()¶ - Used as argument for a non rational functions
Return type: TColStd_Array1OfReal
-
static
NoWeights2
()¶ - Used as argument for a non rational functions
Return type: TColStd_Array2OfReal
-
static
RationalDerivative
()¶ - Computes the derivatives of a ratio at order <N> in dimension <Dimension>. //! <Ders> is an array containing the values of the input derivatives from 0 to Min(<N>,<Degree>). For orders higher than <Degree> the inputcd /s2d1/BMDL/ derivatives are assumed to be 0. //! Content of <Ders> : //! x(1),x(2),…,x(Dimension),w x’(1),x’(2),…,x’(Dimension),w’ x’‘(1),x’‘(2),…,x’‘(Dimension),w’’ //! If <All> is false, only the derivative at order <N> is computed. <RDers> is an array of length Dimension which will contain the result : //! x(1)/w , x(2)/w , … derivated <N> times //! If <All> is true all the derivatives up to order <N> are computed. <RDers> is an array of length Dimension * (N+1) which will contains : //! x(1)/w , x(2)/w , … x(1)/w , x(2)/w , … derivated <1> times x(1)/w , x(2)/w , … derivated <2> times … x(1)/w , x(2)/w , … derivated <N> times //! Warning: <RDers> must be dimensionned properly.
Parameters: Return type: void
-
static
RationalDerivatives
()¶ - Computes DerivativesRequest derivatives of a ratio at of a BSpline function of degree <Degree> dimension <Dimension>. //! <PolesDerivatives> is an array containing the values of the input derivatives from 0 to <DerivativeRequest> For orders higher than <Degree> the input derivatives are assumed to be 0. //! Content of <PoleasDerivatives> : //! x(1),x(2),…,x(Dimension) x’(1),x’(2),…,x’(Dimension) x’‘(1),x’‘(2),…,x’‘(Dimension) //! WeightsDerivatives is an array that contains derivatives from 0 to <DerivativeRequest> After returning from the routine the array RationalDerivatives contains the following x(1)/w , x(2)/w , … x(1)/w , x(2)/w , … derivated once x(1)/w , x(2)/w , … twice x(1)/w , x(2)/w , … derivated <DerivativeRequest> times //! The array RationalDerivatives and PolesDerivatives can be same since the overwrite is non destructive within the algorithm //! Warning: <RationalDerivates> must be dimensionned properly.
Parameters: Return type: void
-
static
SetPoles
()¶ - Copy in FP the coordinates of the poles.
Parameters: - Poles (TColgp_Array1OfPnt) –
- FP (TColStd_Array1OfReal &) –
Return type: void
- Copy in FP the coordinates of the poles.
Parameters: - Poles (TColgp_Array1OfPnt) –
- Weights (TColStd_Array1OfReal &) –
- FP (TColStd_Array1OfReal &) –
Return type: void
- Copy in FP the coordinates of the poles.
Parameters: - Poles (TColgp_Array1OfPnt2d) –
- FP (TColStd_Array1OfReal &) –
Return type: void
- Copy in FP the coordinates of the poles.
Parameters: - Poles (TColgp_Array1OfPnt2d) –
- Weights (TColStd_Array1OfReal &) –
- FP (TColStd_Array1OfReal &) –
Return type: void
-
static
Trimming
()¶ Parameters: Return type: void
Return type: void
Return type: void
Return type: void
-
static
UTrimming
()¶ Parameters: - U1 (float) –
- U2 (float) –
- Coeffs (TColgp_Array2OfPnt) –
- WCoeffs (TColStd_Array2OfReal &) –
Return type: void
-
static
VTrimming
()¶ Parameters: - V1 (float) –
- V2 (float) –
- Coeffs (TColgp_Array2OfPnt) –
- WCoeffs (TColStd_Array2OfReal &) –
Return type: void
-
thisown
¶ The membership flag
-
static
-
plib_Bin
()¶ - Returns the Binomial Cnp. N should be <= BSplCLib::MaxDegree().
Parameters: Return type:
-
plib_CoefficientsPoles
()¶ Parameters: - Coefs (TColgp_Array2OfPnt) –
- WCoefs (TColStd_Array2OfReal &) –
- Poles (TColgp_Array2OfPnt) –
- WPoles (TColStd_Array2OfReal &) –
- Coefs –
- WCoefs –
- Poles –
- WPoles –
- Coefs –
- WCoefs –
- Poles –
- WPoles –
- dim (int) –
- Coefs –
- WCoefs –
- Poles –
- WPoles –
- Coefs –
- WCoefs –
- Poles –
- WPoles –
Return type: void
Return type: void
Return type: void
Return type: void
Return type: void
-
plib_ConstraintOrder
()¶ - translates from Integer to GeomAbs_Shape
Parameters: NivConstr (int) – Return type: GeomAbs_Shape
-
plib_EvalCubicHermite
()¶ - Performs the Cubic Hermite Interpolation of given series of points with given parameters with the requested derivative order. ValueArray stores the value at the first and last parameter. It has the following format : [0], [Dimension-1] : value at first param [Dimension], [Dimension + Dimension-1] : value at last param Derivative array stores the value of the derivatives at the first parameter and at the last parameter in the following format [0], [Dimension-1] : derivative at first param [Dimension], [Dimension + Dimension-1] : derivative at last param //! ParameterArray stores the first and last parameter in the following format : [0] : first parameter [1] : last parameter //! Results will store things in the following format with d = DerivativeOrder //! [0], [Dimension-1] : value [Dimension], [Dimension + Dimension-1] : first derivative //! [d *Dimension], [d*Dimension + Dimension-1]: dth derivative
Parameters: Return type:
-
plib_EvalLagrange
()¶ - Performs the Lagrange Interpolation of given series of points with given parameters with the requested derivative order Results will store things in the following format with d = DerivativeOrder //! [0], [Dimension-1] : value [Dimension], [Dimension + Dimension-1] : first derivative //! [d *Dimension], [d*Dimension + Dimension-1]: dth derivative
Parameters: Return type:
-
plib_EvalLength
()¶ Parameters: Return type: void
Return type: void
-
plib_EvalPoly2Var
()¶ - Applies EvalPolynomial twice to evaluate the derivative of orders UDerivativeOrder in U, VDerivativeOrder in V at parameters U,V //! PolynomialCoeff are stored in the following fashion c00(1) …. c00(Dimension) c10(1) …. c10(Dimension) …. cm0(1) …. cm0(Dimension) …. c01(1) …. c01(Dimension) c11(1) …. c11(Dimension) …. cm1(1) …. cm1(Dimension) …. c0n(1) …. c0n(Dimension) c1n(1) …. c1n(Dimension) …. cmn(1) …. cmn(Dimension) //! where the polynomial is defined as : 2 m c00 + c10 U + c20 U + …. + cm0 U 2 m + c01 V + c11 UV + c21 U V + …. + cm1 U V n m n + …. + c0n V + …. + cmn U V //! with m = UDegree and n = VDegree //! Results stores the result in the following format //! f(1) f(2) …. f(Dimension) //! Warning: <Results> and <PolynomialCoeff> must be dimensioned properly
Parameters: Return type: void
-
plib_EvalPolynomial
()¶ - Performs Horner method with synthethic division for derivatives parameter <U>, with <Degree> and <Dimension>. PolynomialCoeff are stored in the following fashion c0(1) c0(2) …. c0(Dimension) c1(1) c1(2) …. c1(Dimension) //! cDegree(1) cDegree(2) …. cDegree(Dimension) where the polynomial is defined as : //! 2 Degree c0 + c1 X + c2 X + …. cDegree X //! Results stores the result in the following format //! f(1) f(2) …. f(Dimension) (1) (1) (1) f (1) f (2) …. f (Dimension) //! (DerivativeRequest) (DerivativeRequest) f (1) f (Dimension) //! this just evaluates the point at parameter U //! Warning: <Results> and <PolynomialCoeff> must be dimensioned properly
Parameters: Return type: void
-
plib_GetPoles
()¶ - Get from FP the coordinates of the poles.
Parameters: - FP (TColStd_Array1OfReal &) –
- Poles (TColgp_Array1OfPnt) –
Return type: void
- Get from FP the coordinates of the poles.
Parameters: - FP (TColStd_Array1OfReal &) –
- Poles (TColgp_Array1OfPnt) –
- Weights (TColStd_Array1OfReal &) –
Return type: void
- Get from FP the coordinates of the poles.
Parameters: - FP (TColStd_Array1OfReal &) –
- Poles (TColgp_Array1OfPnt2d) –
Return type: void
- Get from FP the coordinates of the poles.
Parameters: - FP (TColStd_Array1OfReal &) –
- Poles (TColgp_Array1OfPnt2d) –
- Weights (TColStd_Array1OfReal &) –
Return type: void
-
plib_HermiteCoefficients
()¶ - This build the coefficient of Hermite’s polynomes on [FirstParameter, LastParameter] //! if j <= FirstOrder+1 then //! MatrixCoefs[i, j] = ith coefficient of the polynome H0,j-1 //! else //! MatrixCoefs[i, j] = ith coefficient of the polynome H1,k with k = j - FirstOrder - 2 //! return false if - |FirstParameter| > 100 - |LastParameter| > 100 - |FirstParameter| +|LastParameter| < 1/100 - |LastParameter - FirstParameter| / (|FirstParameter| +|LastParameter|) < 1/100
Parameters: Return type:
-
plib_HermiteInterpolate
()¶ - Compute the coefficients in the canonical base of the polynomial satisfying the given constraints at the given parameters The array FirstContr(i,j) i=1,Dimension j=0,FirstOrder contains the values of the constraint at parameter FirstParameter idem for LastConstr
Parameters: Return type:
-
plib_JacobiParameters
()¶ - Compute the number of points used for integral computations (NbGaussPoints) and the degree of Jacobi Polynomial (WorkDegree). ConstraintOrder has to be GeomAbs_C0, GeomAbs_C1 or GeomAbs_C2 Code: Code d’ init. des parametres de discretisation. = -5 = -4 = -3 = -2 = -1 = 1 calcul rapide avec precision moyenne. = 2 calcul rapide avec meilleure precision. = 3 calcul un peu plus lent avec bonne precision. = 4 calcul lent avec la meilleure precision possible.
Parameters: Return type: void
-
plib_NivConstr
()¶ - translates from GeomAbs_Shape to Integer
Parameters: ConstraintOrder (GeomAbs_Shape) – Return type: int
-
plib_NoDerivativeEvalPolynomial
()¶ - Same as above with DerivativeOrder = 0;
Parameters: Return type: void
-
plib_NoWeights
()¶ - Used as argument for a non rational functions
Return type: TColStd_Array1OfReal
-
plib_NoWeights2
()¶ - Used as argument for a non rational functions
Return type: TColStd_Array2OfReal
-
plib_RationalDerivative
()¶ - Computes the derivatives of a ratio at order <N> in dimension <Dimension>. //! <Ders> is an array containing the values of the input derivatives from 0 to Min(<N>,<Degree>). For orders higher than <Degree> the inputcd /s2d1/BMDL/ derivatives are assumed to be 0. //! Content of <Ders> : //! x(1),x(2),…,x(Dimension),w x’(1),x’(2),…,x’(Dimension),w’ x’‘(1),x’‘(2),…,x’‘(Dimension),w’’ //! If <All> is false, only the derivative at order <N> is computed. <RDers> is an array of length Dimension which will contain the result : //! x(1)/w , x(2)/w , … derivated <N> times //! If <All> is true all the derivatives up to order <N> are computed. <RDers> is an array of length Dimension * (N+1) which will contains : //! x(1)/w , x(2)/w , … x(1)/w , x(2)/w , … derivated <1> times x(1)/w , x(2)/w , … derivated <2> times … x(1)/w , x(2)/w , … derivated <N> times //! Warning: <RDers> must be dimensionned properly.
Parameters: Return type: void
-
plib_RationalDerivatives
()¶ - Computes DerivativesRequest derivatives of a ratio at of a BSpline function of degree <Degree> dimension <Dimension>. //! <PolesDerivatives> is an array containing the values of the input derivatives from 0 to <DerivativeRequest> For orders higher than <Degree> the input derivatives are assumed to be 0. //! Content of <PoleasDerivatives> : //! x(1),x(2),…,x(Dimension) x’(1),x’(2),…,x’(Dimension) x’‘(1),x’‘(2),…,x’‘(Dimension) //! WeightsDerivatives is an array that contains derivatives from 0 to <DerivativeRequest> After returning from the routine the array RationalDerivatives contains the following x(1)/w , x(2)/w , … x(1)/w , x(2)/w , … derivated once x(1)/w , x(2)/w , … twice x(1)/w , x(2)/w , … derivated <DerivativeRequest> times //! The array RationalDerivatives and PolesDerivatives can be same since the overwrite is non destructive within the algorithm //! Warning: <RationalDerivates> must be dimensionned properly.
Parameters: Return type: void
-
plib_SetPoles
()¶ - Copy in FP the coordinates of the poles.
Parameters: - Poles (TColgp_Array1OfPnt) –
- FP (TColStd_Array1OfReal &) –
Return type: void
- Copy in FP the coordinates of the poles.
Parameters: - Poles (TColgp_Array1OfPnt) –
- Weights (TColStd_Array1OfReal &) –
- FP (TColStd_Array1OfReal &) –
Return type: void
- Copy in FP the coordinates of the poles.
Parameters: - Poles (TColgp_Array1OfPnt2d) –
- FP (TColStd_Array1OfReal &) –
Return type: void
- Copy in FP the coordinates of the poles.
Parameters: - Poles (TColgp_Array1OfPnt2d) –
- Weights (TColStd_Array1OfReal &) –
- FP (TColStd_Array1OfReal &) –
Return type: void
-
plib_Trimming
()¶ Parameters: Return type: void
Return type: void
Return type: void
Return type: void
-
plib_UTrimming
()¶ Parameters: - U1 (float) –
- U2 (float) –
- Coeffs (TColgp_Array2OfPnt) –
- WCoeffs (TColStd_Array2OfReal &) –
Return type: void
-
plib_VTrimming
()¶ Parameters: - V1 (float) –
- V2 (float) –
- Coeffs (TColgp_Array2OfPnt) –
- WCoeffs (TColStd_Array2OfReal &) –
Return type: void
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases