OCC.BSplCLib module¶

class
OCC.BSplCLib.
SwigPyIterator
(*args, **kwargs)¶ Bases:
object

advance
()¶

copy
()¶

decr
()¶

distance
()¶

equal
()¶

incr
()¶

next
()¶

previous
()¶

thisown
¶ The membership flag

value
()¶


class
OCC.BSplCLib.
bsplclib
(*args, **kwargs)¶ Bases:
object

static
AntiBoorScheme
(*args)¶  Compute the content of Pole before the BoorScheme. This method is used to remove poles. U is the poles to remove, Knots should contains the knots of the curve after knot removal. The first and last poles do not change, the other poles are computed by averaging two possible values. The distance between the two possible poles is computed, if it is higher than <Tolerance> False is returned.
Parameters:  U (float) –
 Degree (Standard_Integer) –
 Knots (float &) –
 Dimension (Standard_Integer) –
 Poles (float &) –
 Depth (Standard_Integer) –
 Length (Standard_Integer) –
 Tolerance (float) –
Return type: bool

static
Bohm
(*args)¶  Performs the Bohm Algorithm at parameter <U>. This algorithm computes the value and all the derivatives up to order N (N <= Degree). <Poles> is the original array of poles. The result in <Poles> is the value and the derivatives. Poles[0] is the value, Poles[Degree] is the last derivative.
Parameters:  U (float) –
 Degree (Standard_Integer) –
 N (Standard_Integer) –
 Knots (float &) –
 Dimension (Standard_Integer) –
 Poles (float &) –
Return type: void

static
BoorIndex
(*args)¶  Returns the index in the Boor result array of the poles <Index>. If the Boor algorithm was perform with <Length> and <Depth>.
Parameters:  Index (Standard_Integer) –
 Length (Standard_Integer) –
 Depth (Standard_Integer) –
Return type: int

static
BoorScheme
(*args)¶  Performs the Boor Algorithm at parameter <U> with the given <Degree> and the array of <Knots> on the poles <Poles> of dimension <Dimension>. The schema is computed until level <Depth> on a basis of <Length+1> poles. * Knots is an array of reals of length : <Length> + <Degree> * Poles is an array of reals of length : (2 * <Length> + 1) * <Dimension> The poles values must be set in the array at the positions. 0..Dimension, 2 * Dimension .. 3 * Dimension 4 * Dimension .. 5 * Dimension ... The results are found in the array poles depending on the Depth. (See the method GetPole).
Parameters:  U (float) –
 Degree (Standard_Integer) –
 Knots (float &) –
 Dimension (Standard_Integer) –
 Poles (float &) –
 Depth (Standard_Integer) –
 Length (Standard_Integer) –
Return type: void

static
BuildBSpMatrix
(*args)¶  This Builds a fully blown Matrix of (ni) Bi (tj) with i and j within 1..Order + NumPoles The integer ni is the ith slot of the array OrderArray, tj is the jth slot of the array Parameters
Parameters:  Parameters (TColStd_Array1OfReal &) –
 OrderArray (TColStd_Array1OfInteger &) –
 FlatKnots (TColStd_Array1OfReal &) –
 Degree (Standard_Integer) –
 Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer &) –
 LowerBandWidth (Standard_Integer &) –
Return type: int

static
BuildBoor
(*args)¶  Copy in <LP> poles for <Dimension> Boor scheme. Starting from <Index> * <Dimension>, copy <Length+1> poles.
Parameters:  Index (Standard_Integer) –
 Length (Standard_Integer) –
 Dimension (Standard_Integer) –
 Poles (TColStd_Array1OfReal &) –
 LP (float &) –
Return type: void

static
BuildCache
(*args)¶  Perform the evaluation of the Taylor expansion of the Bspline normalized between 0 and 1. If rational computes the homogeneous Taylor expension for the numerator and stores it in CachePoles
Parameters:  U (float) –
 InverseOfSpanDomain (float) –
 PeriodicFlag (bool) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 CachePoles (TColgp_Array1OfPnt) –
 CacheWeights (TColStd_Array1OfReal &) –
Return type: void
 Perform the evaluation of the Taylor expansion of the Bspline normalized between 0 and 1. If rational computes the homogeneous Taylor expension for the numerator and stores it in CachePoles
Parameters:  U (float) –
 InverseOfSpanDomain (float) –
 PeriodicFlag (bool) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 CachePoles (TColgp_Array1OfPnt2d) –
 CacheWeights (TColStd_Array1OfReal &) –
Return type: void

static
BuildEval
(*args)¶ Parameters:  Degree (Standard_Integer) –
 Index (Standard_Integer) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 LP (float &) –
 Degree –
 Index –
 Poles –
 Weights –
 LP –
Return type: void
Return type: void
 Copy in <LP> the poles and weights for the Eval scheme. starting from Poles(Poles.Lower()+Index)
Parameters:  Degree (Standard_Integer) –
 Index (Standard_Integer) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 LP (float &) –
Return type: void

static
BuildKnots
(*args)¶  Stores in LK the usefull knots for the BoorSchem on the span Knots(Index)  Knots(Index+1)
Parameters:  Degree (Standard_Integer) –
 Index (Standard_Integer) –
 Periodic (bool) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 LK (float &) –
Return type: void

static
BuildSchoenbergPoints
(*args)¶  builds the Schoenberg points from the flat knot used to interpolate a BSpline since the BSpline matrix is invertible.
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
Return type: void

static
CacheD0
(*args)¶  Perform the evaluation of the of the cache the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights this just evaluates the current point the CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effects
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights ththe CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effectsis just evaluates the current point
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
Return type: void

static
CacheD1
(*args)¶  Perform the evaluation of the of the cache the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights this just evaluates the current point the CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effects
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec (gp_Vec) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights ththe CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effectsis just evaluates the current point
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec (gp_Vec2d) –
Return type: void

static
CacheD2
(*args)¶  Perform the evaluation of the of the cache the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights this just evaluates the current point the CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effects
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec1 (gp_Vec) –
 Vec2 (gp_Vec) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights ththe CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effectsis just evaluates the current point
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec1 (gp_Vec2d) –
 Vec2 (gp_Vec2d) –
Return type: void

static
CacheD3
(*args)¶  Perform the evaluation of the of the cache the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights this just evaluates the current point the CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effects
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec1 (gp_Vec) –
 Vec2 (gp_Vec) –
 Vec3 (gp_Vec) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights ththe CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effectsis just evaluates the current point
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec1 (gp_Vec2d) –
 Vec2 (gp_Vec2d) –
 Vec3 (gp_Vec2d) –
Return type: void

static
CoefsD0
(*args)¶  Calls CacheD0 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
Return type: void
 Calls CacheD0 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
Return type: void

static
CoefsD1
(*args)¶  Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec (gp_Vec) –
Return type: void
 Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec (gp_Vec2d) –
Return type: void

static
CoefsD2
(*args)¶  Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec1 (gp_Vec) –
 Vec2 (gp_Vec) –
Return type: void
 Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec1 (gp_Vec2d) –
 Vec2 (gp_Vec2d) –
Return type: void

static
CoefsD3
(*args)¶  Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec1 (gp_Vec) –
 Vec2 (gp_Vec) –
 Vec3 (gp_Vec) –
Return type: void
 Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec1 (gp_Vec2d) –
 Vec2 (gp_Vec2d) –
 Vec3 (gp_Vec2d) –
Return type: void

static
D0
(*args)¶ Parameters:  U (float) –
 Index (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 P (gp_Pnt2d) –
 U –
 Index –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 U –
 UIndex (Standard_Integer) –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 U –
 Poles –
 Weights –
 P –
 U –
 Poles –
 Weights –
 P –
Return type: void
Return type: void
Return type: void
Return type: void
Return type: void

static
D1
(*args)¶ Parameters:  U (float) –
 Index (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 P (gp_Pnt2d) –
 V (gp_Vec2d) –
 U –
 Index –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V –
 U –
 UIndex (Standard_Integer) –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V –
 U –
 Poles –
 Weights –
 P –
 V –
 U –
 Poles –
 Weights –
 P –
 V –
Return type: void
Return type: void
Return type: void
Return type: void
Return type: void

static
D2
(*args)¶ Parameters:  U (float) –
 Index (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 P (gp_Pnt2d) –
 V1 (gp_Vec2d) –
 V2 (gp_Vec2d) –
 U –
 Index –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V1 –
 V2 –
 U –
 UIndex (Standard_Integer) –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V1 –
 V2 –
 U –
 Poles –
 Weights –
 P –
 V1 –
 V2 –
 U –
 Poles –
 Weights –
 P –
 V1 –
 V2 –
Return type: void
Return type: void
Return type: void
Return type: void
Return type: void

static
D3
(*args)¶ Parameters:  U (float) –
 Index (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 P (gp_Pnt2d) –
 V1 (gp_Vec2d) –
 V2 (gp_Vec2d) –
 V3 (gp_Vec2d) –
 U –
 Index –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V1 –
 V2 –
 V3 –
 U –
 UIndex (Standard_Integer) –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V1 –
 V2 –
 V3 –
 U –
 Poles –
 Weights –
 P –
 V1 –
 V2 –
 V3 –
 U –
 Poles –
 Weights –
 P –
 V1 –
 V2 –
 V3 –
Return type: void
Return type: void
Return type: void
Return type: void
Return type: void

static
Derivative
(*args)¶  Computes the poles of the BSpline giving the derivatives of order <Order>. The formula for the first order is Pole(i) = Degree * (Pole(i+1)  Pole(i)) / (Knots(i+Degree+1)  Knots(i+1)) This formula is repeated (Degree is decremented at each step).
Parameters:  Degree (Standard_Integer) –
 Knots (float &) –
 Dimension (Standard_Integer) –
 Length (Standard_Integer) –
 Order (Standard_Integer) –
 Poles (float &) –
Return type: void

static
Eval
(*args)¶  Perform the Boor algorithm to evaluate a point at parameter <U>, with <Degree> and <Dimension>. Poles is an array of Reals of size <Dimension> * <Degree>+1 Containing the poles. At the end <Poles> contains the current point.
Parameters:  U (float) –
 Degree (Standard_Integer) –
 Knots (float &) –
 Dimension (Standard_Integer) –
 Poles (float &) –
Return type: void
 Perform the De Boor algorithm to evaluate a point at parameter <U>, with <Degree> and <Dimension>. Poles is an array of Reals of size <Dimension> * <Degree>+1 Containing the poles. At the end <Poles> contains the current point. Poles Contain all the poles of the BsplineCurve, Knots also Contains all the knots of the BsplineCurve. ExtrapMode has two slots [0] = Degree used to extrapolate before the first knot [1] = Degre used to extrapolate after the last knot has to be between 1 and Degree
Parameters:  U (float) –
 PeriodicFlag (bool) –
 DerivativeRequest (Standard_Integer) –
 ExtrapMode (Standard_Integer &) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 ArrayDimension (Standard_Integer) –
 Poles (float &) –
 Result (float &) –
Return type: void
 Perform the De Boor algorithm to evaluate a point at parameter <U>, with <Degree> and <Dimension>. Evaluates by multiplying the Poles by the Weights and gives the homogeneous result in PolesResult that is the results of the evaluation of the numerator once it has been multiplied by the weights and in WeightsResult one has the result of the evaluation of the denominator Warning: <PolesResult> and <WeightsResult> must be dimensionned properly.
Parameters:  U (float) –
 PeriodicFlag (bool) –
 DerivativeRequest (Standard_Integer) –
 ExtrapMode (Standard_Integer &) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 ArrayDimension (Standard_Integer) –
 Poles (float &) –
 Weights (float &) –
 PolesResult (float &) –
 WeightsResult (float &) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point
Parameters:  U (float) –
 PeriodicFlag (bool) –
 HomogeneousFlag (bool) –
 ExtrapMode (Standard_Integer &) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Weight (float &) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point
Parameters:  U (float) –
 PeriodicFlag (bool) –
 HomogeneousFlag (bool) –
 ExtrapMode (Standard_Integer &) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Weight (float &) –
Return type: void

static
EvalBsplineBasis
(*args)¶  This evaluates the Bspline Basis at a given parameter Parameter up to the requested DerivativeOrder and store the result in the array BsplineBasis in the following fashion BSplineBasis(1,1) = value of first non vanishing Bspline function which has Index FirstNonZeroBsplineIndex BsplineBasis(1,2) = value of second non vanishing Bspline function which has Index FirstNonZeroBsplineIndex + 1 BsplineBasis(1,n) = value of second non vanishing non vanishing Bspline function which has Index FirstNonZeroBsplineIndex + n (n <= Order) BSplineBasis(2,1) = value of derivative of first non vanishing Bspline function which has Index FirstNonZeroBsplineIndex BSplineBasis(N,1) = value of Nth derivative of first non vanishing Bspline function which has Index FirstNonZeroBsplineIndex if N <= DerivativeOrder + 1
Parameters:  Side (Standard_Integer) –
 DerivativeOrder (Standard_Integer) –
 Order (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameter (float) –
 FirstNonZeroBsplineIndex (Standard_Integer &) –
 BsplineBasis (math_Matrix &) –
Return type: int

static
FactorBandedMatrix
(*args)¶  this factors the Banded Matrix in the LU form with a Banded storage of components of the L matrix WARNING : do not use if the Matrix is totally positive (It is the case for Bspline matrices build as above with parameters being the Schoenberg points
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 PivotIndexProblem (Standard_Integer &) –
Return type: int

static
FirstUKnotIndex
(*args)¶  Computes the index of the knots value which gives the start point of the curve.
Parameters:  Degree (Standard_Integer) –
 Mults (TColStd_Array1OfInteger &) –
Return type: int

static
FlatBezierKnots
(*args)¶  Returns pointer to statically allocated array representing flat knots for bezier curve of the specified degree. Raises OutOfRange if Degree > MaxDegree()
Parameters: Degree (Standard_Integer) – Return type: float

static
FlatIndex
(*args)¶  Computes the index of the flats knots sequence corresponding to <Index> in the knots sequence which multiplicities are <Mults>.
Parameters:  Degree (Standard_Integer) –
 Index (Standard_Integer) –
 Mults (TColStd_Array1OfInteger &) –
 Periodic (bool) –
Return type: int

static
FunctionMultiply
(*args)¶  this will multiply a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] by a function a(t) which is assumed to satisfy the following : 1. a(t) * F(t) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. the range of a(t) is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of a(t)*F(t)
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 PolesDimension (Standard_Integer) –
 Poles (float &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (float &) –
 Status (Standard_Integer &) –
Return type: void
 this will multiply a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] by a function a(t) which is assumed to satisfy the following : 1. a(t) * F(t) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. the range of a(t) is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of a(t)*F(t)
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColStd_Array1OfReal &) –
 Status (Standard_Integer &) –
Return type: void
 this will multiply a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] by a function a(t) which is assumed to satisfy the following : 1. a(t) * F(t) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. the range of a(t) is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of a(t)*F(t)
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt2d) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColgp_Array1OfPnt2d) –
 Status (Standard_Integer &) –
Return type: void
 this will multiply a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] by a function a(t) which is assumed to satisfy the following : 1. a(t) * F(t) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. the range of a(t) is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of a(t)*F(t)
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColgp_Array1OfPnt) –
 Status (Standard_Integer &) –
Return type: void

static
FunctionReparameterise
(*args)¶  This function will compose a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] with a function a(t) which is assumed to satisfy the following: 1. F(a(t)) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. a(t) defines a differentiable isomorphism between the range of FlatKnots to the range of BSplineFlatKnots which is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of F(a(t))
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 PolesDimension (Standard_Integer) –
 Poles (float &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (float &) –
 Status (Standard_Integer &) –
Return type: void
 This function will compose a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] with a function a(t) which is assumed to satisfy the following: 1. F(a(t)) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. a(t) defines a differentiable isomorphism between the range of FlatKnots to the range of BSplineFlatKnots which is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of F(a(t))
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColStd_Array1OfReal &) –
 Status (Standard_Integer &) –
Return type: void
 this will compose a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] with a function a(t) which is assumed to satisfy the following : 1. F(a(t)) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. a(t) defines a differentiable isomorphism between the range of FlatKnots to the range of BSplineFlatKnots which is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of F(a(t))
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColgp_Array1OfPnt) –
 Status (Standard_Integer &) –
Return type: void
 this will compose a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] with a function a(t) which is assumed to satisfy the following : 1. F(a(t)) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. a(t) defines a differentiable isomorphism between the range of FlatKnots to the range of BSplineFlatKnots which is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of F(a(t))
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt2d) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColgp_Array1OfPnt2d) –
 Status (Standard_Integer &) –
Return type: void

static
GetPole
(*args)¶  Copy the pole at position <Index> in the Boor scheme of dimension <Dimension> to <Position> in the array <Pole>. <Position> is updated.
Parameters:  Index (Standard_Integer) –
 Length (Standard_Integer) –
 Depth (Standard_Integer) –
 Dimension (Standard_Integer) –
 LocPoles (float &) –
 Position (Standard_Integer &) –
 Pole (TColStd_Array1OfReal &) –
Return type: void

static
Hunt
(*args)¶  This routine searches the position of the real value X in the ordered set of real values XX. The elements in the table XX are either monotonically increasing or monotonically decreasing. The input value Iloc is used to initialize the algorithm : if Iloc is outside of the bounds [XX.Lower(), – XX.Upper()] the bisection algorithm is used else the routine searches from a previous known position by increasing steps then converges by bisection. This routine is used to locate a knot value in a set of knots.
Parameters:  XX (TColStd_Array1OfReal &) –
 X (float) –
 Iloc (Standard_Integer &) –
Return type: void

static
IncreaseDegree
(*args)¶ Parameters:  Degree (Standard_Integer) –
 NewDegree (Standard_Integer) –
 Periodic (bool) –
 Dimension (Standard_Integer) –
 Poles (TColgp_Array1OfPnt) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Degree –
 NewDegree –
 Periodic –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 Knots –
 Mults –
 NewPoles –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots –
 NewMults –
 Degree –
 NewDegree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 NewPoles –
 NewWeights –
 NewKnots –
 NewMults –
 NewDegree –
 Poles –
 Weights –
 NewPoles –
 NewWeights –
Return type: void
Return type: void
Return type: void
Return type: void
 Increase the degree of a bspline (or bezier) curve of dimension <Dimension> form <Degree> to <NewDegree>. The number of poles in the new curve is : Poles.Length() + (NewDegree  Degree) * Number of spans Where the number of spans is : LastUKnotIndex(Mults)  FirstUKnotIndex(Mults) + 1 for a nonperiodic curve And Knots.Length()  1 for a periodic curve. The multiplicities of all knots are increased by the degree elevation. The new knots are usually the same knots with the exception of a nonperiodic curve with the first and last multiplicity not equal to Degree+1 where knots are removed form the start and the bottom untils the sum of the multiplicities is equal to NewDegree+1 at the knots corresponding to the first and last parameters of the curve. Example : Suppose a curve of degree 3 starting with following knots and multiplicities : knot : 0. 1. 2. mult : 1 2 1 The FirstUKnot is 2. because the sum of multiplicities is Degree+1 : 1 + 2 + 1 = 4 = 3 + 1 i.e. the first parameter of the curve is 2. and will still be 2. after degree elevation. Let raises this curve to degree 4. The multiplicities are increased by 2. They become 2 3 2. But we need a sum of multiplicities of 5 at knot 2. So the first knot is removed and the new knots are : knot : 1. 2. mult : 3 2 The multipicity of the first knot may also be reduced if the sum is still to big. In the most common situations (periodic curve or curve with first and last multiplicities equals to Degree+1) the knots are knot changes. The method IncreaseDegreeCountKnots can be used to compute the new number of knots.
Parameters:  NewDegree (Standard_Integer) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
Return type: void

static
IncreaseDegreeCountKnots
(*args)¶  Returns the number of knots of a curve with multiplicities <Mults> after elevating the degree from <Degree> to <NewDegree>. See the IncreaseDegree method for more comments.
Parameters:  Degree (Standard_Integer) –
 NewDegree (Standard_Integer) –
 Periodic (bool) –
 Mults (TColStd_Array1OfInteger &) –
Return type: int

static
InsertKnot
(*args)¶ Parameters:  UIndex (Standard_Integer) –
 U (float) –
 UMult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt) –
 NewWeights (TColStd_Array1OfReal &) –
Return type: void
 Insert a new knot U of multiplicity UMult in the knot sequence. The location of the new Knot should be given as an input data. UIndex locates the new knot U in the knot sequence and Knots (UIndex) < U < Knots (UIndex + 1). The new control points corresponding to this insertion are returned. Knots and Mults are not updated.
Parameters:  UIndex (Standard_Integer) –
 U (float) –
 UMult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
Return type: void

static
InsertKnots
(*args)¶ Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Dimension (Standard_Integer) –
 Poles (TColgp_Array1OfPnt) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 AddKnots (TColStd_Array1OfReal &) –
 AddMults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Epsilon (float) –
 Add (bool) – default value is Standard_True
 Degree –
 Periodic –
 Dimension –
 Poles –
 Knots –
 Mults –
 AddKnots –
 AddMults –
 NewPoles –
 NewKnots –
 NewMults –
 Epsilon –
 Add – default value is Standard_True
 Degree –
 Periodic –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 Knots –
 Mults –
 AddKnots –
 AddMults –
 NewPoles –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots –
 NewMults –
 Epsilon –
 Add – default value is Standard_True
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 AddKnots –
 AddMults –
 NewPoles –
 NewWeights –
 NewKnots –
 NewMults –
 Epsilon –
 Add – default value is Standard_True
Return type: void
Return type: void
Return type: void
Return type: void
 Insert a sequence of knots <AddKnots> with multiplicities <AddMults>. <AddKnots> must be a non decreasing sequence and verifies : Knots(Knots.Lower()) <= AddKnots(AddKnots.Lower()) Knots(Knots.Upper()) >= AddKnots(AddKnots.Upper()) The NewPoles and NewWeights arrays must have a length : Poles.Length() + Sum(AddMults()) When a knot to insert is identic to an existing knot the multiplicities are added. Epsilon is used to test knots for equality. When AddMult is negative or null the knot is not inserted. No multiplicity will becomes higher than the degree. The new Knots and Multiplicities are copied in <NewKnots> and <NewMults>. All the New arrays should be correctly dimensioned. When all the new knots are existing knots, i.e. only the multiplicities will change it is safe to use the same arrays as input and output.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 AddKnots (TColStd_Array1OfReal &) –
 AddMults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Epsilon (float) –
 Add (bool) – default value is Standard_True
Return type: void
 Insert a sequence of knots <AddKnots> with multiplicities <AddMults>. <AddKnots> must be a non decreasing sequence and verifies : Knots(Knots.Lower()) <= AddKnots(AddKnots.Lower()) Knots(Knots.Upper()) >= AddKnots(AddKnots.Upper()) The NewPoles and NewWeights arrays must have a length : Poles.Length() + Sum(AddMults()) When a knot to insert is identic to an existing knot the multiplicities are added. Epsilon is used to test knots for equality. When AddMult is negative or null the knot is not inserted. No multiplicity will becomes higher than the degree. The new Knots and Multiplicities are copied in <NewKnots> and <NewMults>. All the New arrays should be correctly dimensioned. When all the new knots are existing knots, i.e. only the multiplicities will change it is safe to use the same arrays as input and output.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 AddKnots (TColStd_Array1OfReal &) –
 AddMults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Epsilon (float) –
 Add (bool) – default value is Standard_True
Return type: void

static
Interpolate
(*args)¶  Performs the interpolation of the data given in the Poles array according to the requests in ContactOrderArray that is : if ContactOrderArray(i) has value d it means that Poles(i) containes the dth derivative of the function to be interpolated. The length L of the following arrays must be the same : Parameters, ContactOrderArray, Poles, The length of FlatKnots is Degree + L + 1 Warning: the method used to do that interpolation is gauss elimination WITHOUT pivoting. Thus if the diagonal is not dominant there is no guarantee that the algorithm will work. Nevertheless for Cubic interpolation or interpolation at Scheonberg points the method will work The InversionProblem will report 0 if there was no problem else it will give the index of the faulty pivot
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
 ContactOrderArray (TColStd_Array1OfInteger &) –
 Poles (TColgp_Array1OfPnt) –
 InversionProblem (Standard_Integer &) –
Return type: void
 Performs the interpolation of the data given in the Poles array according to the requests in ContactOrderArray that is : if ContactOrderArray(i) has value d it means that Poles(i) containes the dth derivative of the function to be interpolated. The length L of the following arrays must be the same : Parameters, ContactOrderArray, Poles, The length of FlatKnots is Degree + L + 1 Warning: the method used to do that interpolation is gauss elimination WITHOUT pivoting. Thus if the diagonal is not dominant there is no guarantee that the algorithm will work. Nevertheless for Cubic interpolation at knots or interpolation at Scheonberg points the method will work. The InversionProblem w ll report 0 if there was no problem else it will give the index of the faulty pivot
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
 ContactOrderArray (TColStd_Array1OfInteger &) –
 Poles (TColgp_Array1OfPnt2d) –
 InversionProblem (Standard_Integer &) –
Return type: void
 Performs the interpolation of the data given in the Poles array according to the requests in ContactOrderArray that is : if ContactOrderArray(i) has value d it means that Poles(i) containes the dth derivative of the function to be interpolated. The length L of the following arrays must be the same : Parameters, ContactOrderArray, Poles, The length of FlatKnots is Degree + L + 1 Warning: the method used to do that interpolation is gauss elimination WITHOUT pivoting. Thus if the diagonal is not dominant there is no guarantee that the algorithm will work. Nevertheless for Cubic interpolation at knots or interpolation at Scheonberg points the method will work. The InversionProblem will report 0 if there was no problem else it will give the index of the faulty pivot
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
 ContactOrderArray (TColStd_Array1OfInteger &) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 InversionProblem (Standard_Integer &) –
Return type: void
 Performs the interpolation of the data given in the Poles array according to the requests in ContactOrderArray that is : if ContactOrderArray(i) has value d it means that Poles(i) containes the dth derivative of the function to be interpolated. The length L of the following arrays must be the same : Parameters, ContactOrderArray, Poles, The length of FlatKnots is Degree + L + 1 Warning: the method used to do that interpolation is gauss elimination WITHOUT pivoting. Thus if the diagonal is not dominant there is no guarantee that the algorithm will work. Nevertheless for Cubic interpolation at knots or interpolation at Scheonberg points the method will work. The InversionProblem w ll report 0 if there was no problem else it will give the i
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
 ContactOrderArray (TColStd_Array1OfInteger &) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 InversionProblem (Standard_Integer &) –
Return type: void
 Performs the interpolation of the data given in the Poles array according to the requests in ContactOrderArray that is : if ContactOrderArray(i) has value d it means that Poles(i) containes the dth derivative of the function to be interpolated. The length L of the following arrays must be the same : Parameters, ContactOrderArray The length of FlatKnots is Degree + L + 1 The PolesArray is an seen as an Array[1..N][1..ArrayDimension] with N = tge length of the parameters array Warning: the method used to do that interpolation is gauss elimination WITHOUT pivoting. Thus if the diagonal is not dominant there is no guarantee that the algorithm will work. Nevertheless for Cubic interpolation or interpolation at Scheonberg points the method will work The InversionProblem will report 0 if there was no problem else it will give the index of the faulty pivot
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
 ContactOrderArray (TColStd_Array1OfInteger &) –
 ArrayDimension (Standard_Integer) –
 Poles (float &) –
 InversionProblem (Standard_Integer &) –
 Degree –
 FlatKnots –
 Parameters –
 ContactOrderArray –
 ArrayDimension –
 Poles –
 Weights (float &) –
 InversionProblem –
Return type: void
Return type: void

static
IsRational
(*args)¶  Returns False if all the weights of the array <Weights> between I1 an I2 are identic. Epsilon is used for comparing weights. If Epsilon is 0. the Epsilon of the first weight is used.
Parameters:  Weights (TColStd_Array1OfReal &) –
 I1 (Standard_Integer) –
 I2 (Standard_Integer) –
 Epsilon (float) – default value is 0.0
Return type: bool
 Returns False if all the weights of the array <Weights> between I1 an I2 are identic. Epsilon is used for comparing weights. If Epsilon is 0. the Epsilon of the first weight is used.
Parameters:  Weights (TColStd_Array1OfReal &) –
 I1 (Standard_Integer) –
 I2 (Standard_Integer) –
 Epsilon (float) – default value is 0.0
Return type: bool

static
KnotAnalysis
(*args)¶  Analyzes the array of knots. Returns the form and the maximum knot multiplicity.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 CKnots (TColStd_Array1OfReal &) –
 CMults (TColStd_Array1OfInteger &) –
 KnotForm (GeomAbs_BSplKnotDistribution &) –
 MaxKnotMult (Standard_Integer &) –
Return type: void

static
KnotForm
(*args)¶  Analyses if the knots distribution is ‘Uniform’ or ‘NonUniform’ between the knot FromK1 and the knot ToK2. There is no repetition of knot in the knots’sequence <Knots>.
Parameters:  Knots (TColStd_Array1OfReal &) –
 FromK1 (Standard_Integer) –
 ToK2 (Standard_Integer) –
Return type: BSplCLib_KnotDistribution

static
KnotSequence
(*args)¶ Parameters:  Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 KnotSeq (TColStd_Array1OfReal &) –
Return type: void
 Computes the sequence of knots KnotSeq with repetition of the knots of multiplicity greater than 1. Length of KnotSeq must be KnotSequenceLength(Mults,Degree,Periodic)
Parameters:  Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 KnotSeq (TColStd_Array1OfReal &) –
Return type: void

static
KnotSequenceLength
(*args)¶  Returns the length of the sequence of knots with repetition. Periodic : Sum(Mults(i), i = Mults.Lower(); i <= Mults.Upper()); Non Periodic : Sum(Mults(i); i = Mults.Lower(); i < Mults.Upper()) + 2 * Degree
Parameters:  Mults (TColStd_Array1OfInteger &) –
 Degree (Standard_Integer) –
 Periodic (bool) –
Return type: int

static
Knots
(*args)¶  Computes the sequence of knots Knots without repetition of the knots of multiplicity greater than 1. Length of <Knots> and <Mults> must be KnotsLength(KnotSequence,Periodic)
Parameters:  KnotSeq (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 Periodic (bool) – default value is Standard_False
Return type: void
 Computes the sequence of knots Knots without repetition of the knots of multiplicity greater than 1. Length of <Knots> and <Mults> must be KnotsLength(KnotSequence,Periodic)
Parameters:  KnotSeq (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 Periodic (bool) – default value is Standard_False
Return type: void

static
KnotsLength
(*args)¶  Returns the length of the sequence of knots (and Mults) without repetition.
Parameters:  KnotSeq (TColStd_Array1OfReal &) –
 Periodic (bool) – default value is Standard_False
Return type: int
 Returns the length of the sequence of knots (and Mults) without repetition.
Parameters:  KnotSeq (TColStd_Array1OfReal &) –
 Periodic (bool) – default value is Standard_False
Return type: int

static
LastUKnotIndex
(*args)¶  Computes the index of the knots value which gives the end point of the curve.
Parameters:  Degree (Standard_Integer) –
 Mults (TColStd_Array1OfInteger &) –
Return type: int

static
LocateParameter
(*args)¶  Locates the parametric value U in the knots sequence between the knot K1 and the knot K2. The value return in Index verifies. Knots(Index) <= U < Knots(Index + 1) if U <= Knots (K1) then Index = K1 if U >= Knots (K2) then Index = K2  1 If Periodic is True U may be modified to fit in the range Knots(K1), Knots(K2). In any case the correct value is returned in NewU. Warnings :Index is used as input data to initialize the searching function. Warning: Knots have to be ‘withe repetitions’
Parameters:  Degree (Standard_Integer) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 U (float) –
 IsPeriodic (bool) –
 FromK1 (Standard_Integer) –
 ToK2 (Standard_Integer) –
 KnotIndex (Standard_Integer &) –
 NewU (float &) –
Return type: void
 Locates the parametric value U in the knots sequence between the knot K1 and the knot K2. The value return in Index verifies. Knots(Index) <= U < Knots(Index + 1) if U <= Knots (K1) then Index = K1 if U >= Knots (K2) then Index = K2  1 If Periodic is True U may be modified to fit in the range Knots(K1), Knots(K2). In any case the correct value is returned in NewU. Warnings :Index is used as input data to initialize the searching function. Warning: Knots have to be ‘flat’
Parameters:  Degree (Standard_Integer) –
 Knots (TColStd_Array1OfReal &) –
 U (float) –
 IsPeriodic (bool) –
 FromK1 (Standard_Integer) –
 ToK2 (Standard_Integer) –
 KnotIndex (Standard_Integer &) –
 NewU (float &) –
 Degree –
 Knots –
 Mults (TColStd_Array1OfInteger &) –
 U –
 Periodic (bool) –
 Index (Standard_Integer &) –
 NewU –
Return type: void
Return type: void

static
MaxDegree
()¶  returns the degree maxima for a BSplineCurve.
Return type: int

static
MaxKnotMult
(*args)¶  Finds the greatest multiplicity in a set of knots between K1 and K2. Mults is the multiplicity associated with each knot value.
Parameters:  Mults (TColStd_Array1OfInteger &) –
 K1 (Standard_Integer) –
 K2 (Standard_Integer) –
Return type: int

static
MergeBSplineKnots
(*args)¶  Merges two knot vector by setting the starting and ending values to StartValue and EndValue
Parameters:  Tolerance (float) –
 StartValue (float) –
 EndValue (float) –
 Degree1 (Standard_Integer) –
 Knots1 (TColStd_Array1OfReal &) –
 Mults1 (TColStd_Array1OfInteger &) –
 Degree2 (Standard_Integer) –
 Knots2 (TColStd_Array1OfReal &) –
 Mults2 (TColStd_Array1OfInteger &) –
 NumPoles (Standard_Integer &) –
 NewKnots (Handle_TColStd_HArray1OfReal &) –
 NewMults (Handle_TColStd_HArray1OfInteger &) –
Return type: void

static
MinKnotMult
(*args)¶  Finds the lowest multiplicity in a set of knots between K1 and K2. Mults is the multiplicity associated with each knot value.
Parameters:  Mults (TColStd_Array1OfInteger &) –
 K1 (Standard_Integer) –
 K2 (Standard_Integer) –
Return type: int

static
MovePoint
(*args)¶  Find the new poles which allows an old point (with a given u as parameter) to reach a new position Index1 and Index2 indicate the range of poles we can move (1, NbPoles1) or (2, NbPoles) > no constraint for one side don’t enter (1,NbPoles) > error: rigid move (2, NbPoles1) > the ends are enforced (3, NbPoles2) > the ends and the tangency are enforced if Problem in BSplineBasis calculation, no change for the curve and FirstIndex, LastIndex = 0
Parameters:  U (float) –
 Displ (gp_Vec2d) –
 Index1 (Standard_Integer) –
 Index2 (Standard_Integer) –
 Degree (Standard_Integer) –
 Rational (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 FirstIndex (Standard_Integer &) –
 LastIndex (Standard_Integer &) –
 NewPoles (TColgp_Array1OfPnt2d) –
Return type: void
 Find the new poles which allows an old point (with a given u as parameter) to reach a new position Index1 and Index2 indicate the range of poles we can move (1, NbPoles1) or (2, NbPoles) > no constraint for one side don’t enter (1,NbPoles) > error: rigid move (2, NbPoles1) > the ends are enforced (3, NbPoles2) > the ends and the tangency are enforced if Problem in BSplineBasis calculation, no change for the curve and FirstIndex, LastIndex = 0
Parameters:  U (float) –
 Displ (gp_Vec) –
 Index1 (Standard_Integer) –
 Index2 (Standard_Integer) –
 Degree (Standard_Integer) –
 Rational (bool) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 FirstIndex (Standard_Integer &) –
 LastIndex (Standard_Integer &) –
 NewPoles (TColgp_Array1OfPnt) –
Return type: void

static
MovePointAndTangent
(*args)¶  This is the dimension free version of the utility U is the parameter must be within the first FlatKnots and the last FlatKnots Delta is the amount the curve has to be moved DeltaDerivative is the amount the derivative has to be moved. Delta and DeltaDerivative must be array of dimension ArrayDimension Degree is the degree of the BSpline and the FlatKnots are the knots of the BSpline Starting Condition if = 1 means the starting point of the curve can move = 0 means the starting point of the cuve cannot move but tangen starting point of the curve cannot move = 1 means the starting point and tangents cannot move = 2 means the starting point tangent and curvature cannot move = ... Same holds for EndingCondition Poles are the poles of the curve Weights are the weights of the curve if Rational = Standard_True NewPoles are the poles of the deformed curve ErrorStatus will be 0 if no error happened 1 if there are not enough knots/poles the imposed conditions The way to solve this problem is to add knots to the BSpline If StartCondition = 1 and EndCondition = 1 then you need at least 4 + 2 = 6 poles so for example to have a C1 cubic you will need have at least 2 internal knots.
Parameters:  U (float) –
 ArrayDimension (Standard_Integer) –
 Delta (float &) –
 DeltaDerivative (float &) –
 Tolerance (float) –
 Degree (Standard_Integer) –
 Rational (bool) –
 StartingCondition (Standard_Integer) –
 EndingCondition (Standard_Integer) –
 Poles (float &) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewPoles (float &) –
 ErrorStatus (Standard_Integer &) –
Return type: void
 This is the dimension free version of the utility U is the parameter must be within the first FlatKnots and the last FlatKnots Delta is the amount the curve has to be moved DeltaDerivative is the amount the derivative has to be moved. Delta and DeltaDerivative must be array of dimension ArrayDimension Degree is the degree of the BSpline and the FlatKnots are the knots of the BSpline Starting Condition if = 1 means the starting point of the curve can move = 0 means the starting point of the cuve cannot move but tangen starting point of the curve cannot move = 1 means the starting point and tangents cannot move = 2 means the starting point tangent and curvature cannot move = ... Same holds for EndingCondition Poles are the poles of the curve Weights are the weights of the curve if Rational = Standard_True NewPoles are the poles of the deformed curve ErrorStatus will be 0 if no error happened 1 if there are not enough knots/poles the imposed conditions The way to solve this problem is to add knots to the BSpline If StartCondition = 1 and EndCondition = 1 then you need at least 4 + 2 = 6 poles so for example to have a C1 cubic you will need have at least 2 internal knots.
Parameters:  U (float) –
 Delta (gp_Vec) –
 DeltaDerivative (gp_Vec) –
 Tolerance (float) –
 Degree (Standard_Integer) –
 Rational (bool) –
 StartingCondition (Standard_Integer) –
 EndingCondition (Standard_Integer) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewPoles (TColgp_Array1OfPnt) –
 ErrorStatus (Standard_Integer &) –
Return type: void
 This is the dimension free version of the utility U is the parameter must be within the first FlatKnots and the last FlatKnots Delta is the amount the curve has to be moved DeltaDerivative is the amount the derivative has to be moved. Delta and DeltaDerivative must be array of dimension ArrayDimension Degree is the degree of the BSpline and the FlatKnots are the knots of the BSpline Starting Condition if = 1 means the starting point of the curve can move = 0 means the starting point of the cuve cannot move but tangen starting point of the curve cannot move = 1 means the starting point and tangents cannot move = 2 means the starting point tangent and curvature cannot move = ... Same holds for EndingCondition Poles are the poles of the curve Weights are the weights of the curve if Rational = Standard_True NewPoles are the poles of the deformed curve ErrorStatus will be 0 if no error happened 1 if there are not enough knots/poles the imposed conditions The way to solve this problem is to add knots to the BSpline If StartCondition = 1 and EndCondition = 1 then you need at least 4 + 2 = 6 poles so for example to have a C1 cubic you will need have at least 2 internal knots.
Parameters:  U (float) –
 Delta (gp_Vec2d) –
 DeltaDerivative (gp_Vec2d) –
 Tolerance (float) –
 Degree (Standard_Integer) –
 Rational (bool) –
 StartingCondition (Standard_Integer) –
 EndingCondition (Standard_Integer) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 ErrorStatus (Standard_Integer &) –
Return type: void

static
MultForm
(*args)¶  Analyses the distribution of multiplicities between the knot FromK1 and the Knot ToK2.
Parameters:  Mults (TColStd_Array1OfInteger &) –
 FromK1 (Standard_Integer) –
 ToK2 (Standard_Integer) –
Return type: BSplCLib_MultDistribution

static
NbPoles
(*args)¶  Returns the number of poles of the curve. Returns 0 if one of the multiplicities is incorrect. * Non positive. * Greater than Degree, or Degree+1 at the first and last knot of a non periodic curve. * The last periodicity on a periodic curve is not equal to the first.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Mults (TColStd_Array1OfInteger &) –
Return type: int

static
NoMults
()¶  Used as argument for a flatknots evaluation.
Return type: TColStd_Array1OfInteger

static
NoWeights
()¶  Used as argument for a non rational curve.
Return type: TColStd_Array1OfReal

static
PoleIndex
(*args)¶  Return the index of the first Pole to use on the span Mults(Index)  Mults(Index+1). This index must be added to Poles.Lower().
Parameters:  Degree (Standard_Integer) –
 Index (Standard_Integer) –
 Periodic (bool) –
 Mults (TColStd_Array1OfInteger &) –
Return type: int

static
PolesCoefficients
(*args)¶ Parameters:  Poles (TColgp_Array1OfPnt) –
 CachePoles (TColgp_Array1OfPnt) –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 CachePoles –
 CacheWeights (TColStd_Array1OfReal &) –
 Poles –
 CachePoles –
Return type: void
Return type: void
Return type: void
 Encapsulation of BuildCache to perform the evaluation of the Taylor expansion for beziercurves at parameter 0. Warning: To be used for Beziercurves ONLY!!!
Parameters:  Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 CachePoles (TColgp_Array1OfPnt) –
 CacheWeights (TColStd_Array1OfReal &) –
Return type: void

static
PrepareInsertKnots
(*args)¶  Returns in <NbPoles, NbKnots> the new number of poles and knots if the sequence of knots <AddKnots, AddMults> is inserted in the sequence <Knots, Mults>. Epsilon is used to compare knots for equality. If Add is True the multiplicities on equal knots are added. If Add is False the max value of the multiplicities is kept. Return False if : The knew knots are knot increasing. The new knots are not in the range.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 AddKnots (TColStd_Array1OfReal &) –
 AddMults (TColStd_Array1OfInteger &) –
 NbPoles (Standard_Integer &) –
 NbKnots (Standard_Integer &) –
 Epsilon (float) –
 Add (bool) – default value is Standard_True
Return type: bool
 Returns in <NbPoles, NbKnots> the new number of poles and knots if the sequence of knots <AddKnots, AddMults> is inserted in the sequence <Knots, Mults>. Epsilon is used to compare knots for equality. If Add is True the multiplicities on equal knots are added. If Add is False the max value of the multiplicities is kept. Return False if : The knew knots are knot increasing. The new knots are not in the range.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 AddKnots (TColStd_Array1OfReal &) –
 AddMults (TColStd_Array1OfInteger &) –
 NbPoles (Standard_Integer &) –
 NbKnots (Standard_Integer &) –
 Epsilon (float) –
 Add (bool) – default value is Standard_True
Return type: bool

static
PrepareTrimming
(*args)¶  Set in <NbKnots> and <NbPoles> the number of Knots and Poles of the curve resulting of the trimming of the BSplinecurve definded with <degree>, <knots>, <mults>
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 U1 (float) –
 U2 (float) –
 NbKnots (Standard_Integer &) –
 NbPoles (Standard_Integer &) –
Return type: void

static
PrepareUnperiodize
(*args)¶  Set in <NbKnots> and <NbPolesToAdd> the number of Knots and Poles of the NotPeriodic Curve identical at the periodic curve with a degree <Degree> , a knotsdistribution with Multiplicities <Mults>.
Parameters:  Degree (Standard_Integer) –
 Mults (TColStd_Array1OfInteger &) –
 NbKnots (Standard_Integer &) –
 NbPoles (Standard_Integer &) –
Return type: void

static
RaiseMultiplicity
(*args)¶ Parameters:  KnotIndex (Standard_Integer) –
 Mult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt) –
 NewWeights (TColStd_Array1OfReal &) –
Return type: void
 Raise the multiplicity of knot to <UMult>. The new control points are returned. Knots and Mults are not updated.
Parameters:  KnotIndex (Standard_Integer) –
 Mult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
Return type: void

static
RemoveKnot
(*args)¶ Parameters:  Index (Standard_Integer) –
 Mult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Dimension (Standard_Integer) –
 Poles (TColgp_Array1OfPnt) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Tolerance (float) –
 Index –
 Mult –
 Degree –
 Periodic –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 Knots –
 Mults –
 NewPoles –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots –
 NewMults –
 Tolerance –
Return type: bool
Return type: bool
 Decrement the multiplicity of <Knots(Index)> to <Mult>. If <Mult> is null the knot is removed. As there are two ways to compute the new poles the midlle will be used as long as the distance is lower than Tolerance. If a distance is bigger than tolerance the methods returns False and the new arrays are not modified. A low tolerance can be used to test if the knot can be removed without modifying the curve. A high tolerance can be used to ‘smooth’ the curve.
Parameters:  Index (Standard_Integer) –
 Mult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Tolerance (float) –
Return type: bool

static
Reparametrize
(*args)¶  Reparametrizes a Bspline curve to [U1, U2]. The knot values are recomputed such that Knots (Lower) = U1 and Knots (Upper) = U2 but the knot form is not modified. Warnings : In the array Knots the values must be in ascending order. U1 must not be equal to U2 to avoid division by zero.
Parameters:  U1 (float) –
 U2 (float) –
 Knots (TColStd_Array1OfReal &) –
Return type: void

static
Resolution
(*args)¶  given a tolerance in 3D space returns a tolerance in U parameter space such that all u1 and u0 in the domain of the curve f(u)  u1  u0  < UTolerance and we have f (u1)  f (u0) < Tolerance3D
Parameters:  PolesArray (float &) –
 ArrayDimension (Standard_Integer) –
 NumPoles (Standard_Integer) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 Degree (Standard_Integer) –
 Tolerance3D (float) –
 UTolerance (float &) –
Return type: void
 given a tolerance in 3D space returns a tolerance in U parameter space such that all u1 and u0 in the domain of the curve f(u)  u1  u0  < UTolerance and we have f (u1)  f (u0) < Tolerance3D
Parameters:  Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 NumPoles (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Degree (Standard_Integer) –
 Tolerance3D (float) –
 UTolerance (float &) –
Return type: void
 given a tolerance in 3D space returns a tolerance in U parameter space such that all u1 and u0 in the domain of the curve f(u)  u1  u0  < UTolerance and we have f (u1)  f (u0) < Tolerance3D
Parameters:  Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 NumPoles (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Degree (Standard_Integer) –
 Tolerance3D (float) –
 UTolerance (float &) –
Return type: void

static
Reverse
(*args)¶  Reverses the array knots to become the knots sequence of the reversed curve.
Parameters: Knots (TColStd_Array1OfReal &) – Return type: void  Reverses the array of multiplicities.
Parameters: Mults (TColStd_Array1OfInteger &) – Return type: void  Reverses the array of poles. Last is the index of the new first pole. On a non periodic curve last is Poles.Upper(). On a periodic curve last is (number of flat knots  degree  1) or (sum of multiplicities(but for the last) + degree  1)
Parameters:  Poles (TColgp_Array1OfPnt) –
 Last (Standard_Integer) –
Return type: void
 Reverses the array of poles.
Parameters:  Poles (TColgp_Array1OfPnt2d) –
 Last (Standard_Integer) –
Return type: void
 Reverses the array of poles.
Parameters:  Weights (TColStd_Array1OfReal &) –
 Last (Standard_Integer) –
Return type: void

static
SolveBandedSystem
(*args)¶  This solves the system Matrix.X = B with when Matrix is factored in LU form The Array is an seen as an Array[1..N][1..ArrayDimension] with N = the rank of the matrix Matrix. The result is stored in Array when each coordinate is solved that is B is the array whose values are B[i] = Array[i][p] for each p in 1..ArrayDimension
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 ArrayDimension (Standard_Integer) –
 Array (float &) –
Return type: int
 This solves the system Matrix.X = B with when Matrix is factored in LU form The Array has the length of the rank of the matrix Matrix. The result is stored in Array when each coordinate is solved that is B is the array whose values are B[i] = Array[i][p] for each p in 1..ArrayDimension
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 Array (TColgp_Array1OfPnt2d) –
Return type: int
 This solves the system Matrix.X = B with when Matrix is factored in LU form The Array has the length of the rank of the matrix Matrix. The result is stored in Array when each coordinate is solved that is B is the array whose values are B[i] = Array[i][p] for each p in 1..ArrayDimension
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 Array (float &) –
 Matrix –
 UpperBandWidth –
 LowerBandWidth –
 HomogenousFlag (bool) –
 ArrayDimension (Standard_Integer) –
 Array –
 Weights (float &) –
Return type: int
Return type: int
 This solves the system Matrix.X = B with when Matrix is factored in LU form The Array is an seen as an Array[1..N][1..ArrayDimension] with N = the rank of the matrix Matrix. The result is stored in Array when each coordinate is solved that is B is the array whose values are B[i] = Array[i][p] for each p in 1..ArrayDimension. If HomogeneousFlag == 0 the Poles are multiplied by the Weights uppon Entry and once interpolation is carried over the result of the poles are divided by the result of the interpolation of the weights. Otherwise if HomogenousFlag == 1 the Poles and Weigths are treated homogenously that is that those are interpolated as they are and result is returned without division by the interpolated weigths.
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 HomogenousFlag (bool) –
 Array (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
Return type: int
 This solves the system Matrix.X = B with when Matrix is factored in LU form The Array is an seen as an Array[1..N][1..ArrayDimension] with N = the rank of the matrix Matrix. The result is stored in Array when each coordinate is solved that is B is the array whose values are B[i] = Array[i][p] for each p in 1..ArrayDimension If HomogeneousFlag == 0 the Poles are multiplied by the Weights uppon Entry and once interpolation is carried over the result of the poles are divided by the result of the interpolation of the weights. Otherwise if HomogenousFlag == 1 the Poles and Weigths are treated homogenously that is that those are interpolated as they are and result is returned without division by the interpolated weigths.
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 HomogeneousFlag (bool) –
 Array (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
Return type: int

static
TangExtendToConstraint
(*args)¶  Extend a BSpline nD using the tangency map <C1Coefficient> is the coefficient of reparametrisation <Continuity> must be equal to 1, 2 or 3. <Degree> must be greater or equal than <Continuity> + 1. Warning: <KnotsResult> and <PolesResult> must be dimensionned properly.
Parameters:  FlatKnots (TColStd_Array1OfReal &) –
 C1Coefficient (float) –
 NumPoles (Standard_Integer) –
 Poles (float &) –
 Dimension (Standard_Integer) –
 Degree (Standard_Integer) –
 ConstraintPoint (TColStd_Array1OfReal &) –
 Continuity (Standard_Integer) –
 After (bool) –
 NbPolesResult (Standard_Integer &) –
 NbKnotsRsult (Standard_Integer &) –
 KnotsResult (float &) –
 PolesResult (float &) –
Return type: void

static
Trimming
(*args)¶ Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Dimension (Standard_Integer) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 Poles (TColgp_Array1OfPnt2d) –
 U1 (float) –
 U2 (float) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 Degree –
 Periodic –
 Knots –
 Mults –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 U1 –
 U2 –
 NewKnots –
 NewMults –
 NewPoles –
 NewWeights (TColStd_Array1OfReal &) –
 Degree –
 Periodic –
 Knots –
 Mults –
 Poles –
 Weights –
 U1 –
 U2 –
 NewKnots –
 NewMults –
 NewPoles –
 NewWeights –
Return type: void
Return type: void
Return type: void

static
Unperiodize
(*args)¶ Parameters:  Degree (Standard_Integer) –
 Dimension (Standard_Integer) –
 Mults (TColStd_Array1OfInteger &) –
 Knots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt2d) –
 NewMults (TColStd_Array1OfInteger &) –
 NewKnots (TColStd_Array1OfReal &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 Degree –
 Mults –
 Knots –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 NewMults –
 NewKnots –
 NewPoles –
 NewWeights (TColStd_Array1OfReal &) –
 Degree –
 Mults –
 Knots –
 Poles –
 Weights –
 NewMults –
 NewKnots –
 NewPoles –
 NewWeights –
Return type: void
Return type: void
Return type: void

thisown
¶ The membership flag

static

OCC.BSplCLib.
bsplclib_AntiBoorScheme
(*args)¶  Compute the content of Pole before the BoorScheme. This method is used to remove poles. U is the poles to remove, Knots should contains the knots of the curve after knot removal. The first and last poles do not change, the other poles are computed by averaging two possible values. The distance between the two possible poles is computed, if it is higher than <Tolerance> False is returned.
Parameters:  U (float) –
 Degree (Standard_Integer) –
 Knots (float &) –
 Dimension (Standard_Integer) –
 Poles (float &) –
 Depth (Standard_Integer) –
 Length (Standard_Integer) –
 Tolerance (float) –
Return type: bool

OCC.BSplCLib.
bsplclib_Bohm
(*args)¶  Performs the Bohm Algorithm at parameter <U>. This algorithm computes the value and all the derivatives up to order N (N <= Degree). <Poles> is the original array of poles. The result in <Poles> is the value and the derivatives. Poles[0] is the value, Poles[Degree] is the last derivative.
Parameters:  U (float) –
 Degree (Standard_Integer) –
 N (Standard_Integer) –
 Knots (float &) –
 Dimension (Standard_Integer) –
 Poles (float &) –
Return type: void

OCC.BSplCLib.
bsplclib_BoorIndex
(*args)¶  Returns the index in the Boor result array of the poles <Index>. If the Boor algorithm was perform with <Length> and <Depth>.
Parameters:  Index (Standard_Integer) –
 Length (Standard_Integer) –
 Depth (Standard_Integer) –
Return type: int

OCC.BSplCLib.
bsplclib_BoorScheme
(*args)¶  Performs the Boor Algorithm at parameter <U> with the given <Degree> and the array of <Knots> on the poles <Poles> of dimension <Dimension>. The schema is computed until level <Depth> on a basis of <Length+1> poles. * Knots is an array of reals of length : <Length> + <Degree> * Poles is an array of reals of length : (2 * <Length> + 1) * <Dimension> The poles values must be set in the array at the positions. 0..Dimension, 2 * Dimension .. 3 * Dimension 4 * Dimension .. 5 * Dimension ... The results are found in the array poles depending on the Depth. (See the method GetPole).
Parameters:  U (float) –
 Degree (Standard_Integer) –
 Knots (float &) –
 Dimension (Standard_Integer) –
 Poles (float &) –
 Depth (Standard_Integer) –
 Length (Standard_Integer) –
Return type: void

OCC.BSplCLib.
bsplclib_BuildBSpMatrix
(*args)¶  This Builds a fully blown Matrix of (ni) Bi (tj) with i and j within 1..Order + NumPoles The integer ni is the ith slot of the array OrderArray, tj is the jth slot of the array Parameters
Parameters:  Parameters (TColStd_Array1OfReal &) –
 OrderArray (TColStd_Array1OfInteger &) –
 FlatKnots (TColStd_Array1OfReal &) –
 Degree (Standard_Integer) –
 Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer &) –
 LowerBandWidth (Standard_Integer &) –
Return type: int

OCC.BSplCLib.
bsplclib_BuildBoor
(*args)¶  Copy in <LP> poles for <Dimension> Boor scheme. Starting from <Index> * <Dimension>, copy <Length+1> poles.
Parameters:  Index (Standard_Integer) –
 Length (Standard_Integer) –
 Dimension (Standard_Integer) –
 Poles (TColStd_Array1OfReal &) –
 LP (float &) –
Return type: void

OCC.BSplCLib.
bsplclib_BuildCache
(*args)¶  Perform the evaluation of the Taylor expansion of the Bspline normalized between 0 and 1. If rational computes the homogeneous Taylor expension for the numerator and stores it in CachePoles
Parameters:  U (float) –
 InverseOfSpanDomain (float) –
 PeriodicFlag (bool) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 CachePoles (TColgp_Array1OfPnt) –
 CacheWeights (TColStd_Array1OfReal &) –
Return type: void
 Perform the evaluation of the Taylor expansion of the Bspline normalized between 0 and 1. If rational computes the homogeneous Taylor expension for the numerator and stores it in CachePoles
Parameters:  U (float) –
 InverseOfSpanDomain (float) –
 PeriodicFlag (bool) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 CachePoles (TColgp_Array1OfPnt2d) –
 CacheWeights (TColStd_Array1OfReal &) –
Return type: void

OCC.BSplCLib.
bsplclib_BuildEval
(*args)¶ Parameters:  Degree (Standard_Integer) –
 Index (Standard_Integer) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 LP (float &) –
 Degree –
 Index –
 Poles –
 Weights –
 LP –
Return type: void
Return type: void
 Copy in <LP> the poles and weights for the Eval scheme. starting from Poles(Poles.Lower()+Index)
Parameters:  Degree (Standard_Integer) –
 Index (Standard_Integer) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 LP (float &) –
Return type: void

OCC.BSplCLib.
bsplclib_BuildKnots
(*args)¶  Stores in LK the usefull knots for the BoorSchem on the span Knots(Index)  Knots(Index+1)
Parameters:  Degree (Standard_Integer) –
 Index (Standard_Integer) –
 Periodic (bool) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 LK (float &) –
Return type: void

OCC.BSplCLib.
bsplclib_BuildSchoenbergPoints
(*args)¶  builds the Schoenberg points from the flat knot used to interpolate a BSpline since the BSpline matrix is invertible.
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
Return type: void

OCC.BSplCLib.
bsplclib_CacheD0
(*args)¶  Perform the evaluation of the of the cache the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights this just evaluates the current point the CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effects
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights ththe CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effectsis just evaluates the current point
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
Return type: void

OCC.BSplCLib.
bsplclib_CacheD1
(*args)¶  Perform the evaluation of the of the cache the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights this just evaluates the current point the CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effects
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec (gp_Vec) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights ththe CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effectsis just evaluates the current point
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec (gp_Vec2d) –
Return type: void

OCC.BSplCLib.
bsplclib_CacheD2
(*args)¶  Perform the evaluation of the of the cache the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights this just evaluates the current point the CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effects
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec1 (gp_Vec) –
 Vec2 (gp_Vec) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights ththe CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effectsis just evaluates the current point
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec1 (gp_Vec2d) –
 Vec2 (gp_Vec2d) –
Return type: void

OCC.BSplCLib.
bsplclib_CacheD3
(*args)¶  Perform the evaluation of the of the cache the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights this just evaluates the current point the CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effects
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec1 (gp_Vec) –
 Vec2 (gp_Vec) –
 Vec3 (gp_Vec) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point the parameter must be normalized between the 0 and 1 for the span. The Cache must be valid when calling this routine. Geom Package will insure that. and then multiplies by the weights ththe CacheParameter is where the Cache was constructed the SpanLength is to normalize the polynomial in the cache to avoid bad conditioning effectsis just evaluates the current point
Parameters:  U (float) –
 Degree (Standard_Integer) –
 CacheParameter (float) –
 SpanLenght (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec1 (gp_Vec2d) –
 Vec2 (gp_Vec2d) –
 Vec3 (gp_Vec2d) –
Return type: void

OCC.BSplCLib.
bsplclib_CoefsD0
(*args)¶  Calls CacheD0 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
Return type: void
 Calls CacheD0 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
Return type: void

OCC.BSplCLib.
bsplclib_CoefsD1
(*args)¶  Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec (gp_Vec) –
Return type: void
 Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec (gp_Vec2d) –
Return type: void

OCC.BSplCLib.
bsplclib_CoefsD2
(*args)¶  Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec1 (gp_Vec) –
 Vec2 (gp_Vec) –
Return type: void
 Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec1 (gp_Vec2d) –
 Vec2 (gp_Vec2d) –
Return type: void

OCC.BSplCLib.
bsplclib_CoefsD3
(*args)¶  Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Vec1 (gp_Vec) –
 Vec2 (gp_Vec) –
 Vec3 (gp_Vec) –
Return type: void
 Calls CacheD1 for Bezier Curves Arrays computed with the method PolesCoefficients. Warning: To be used for Beziercurves ONLY!!!
Parameters:  U (float) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Vec1 (gp_Vec2d) –
 Vec2 (gp_Vec2d) –
 Vec3 (gp_Vec2d) –
Return type: void

OCC.BSplCLib.
bsplclib_D0
(*args)¶ Parameters:  U (float) –
 Index (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 P (gp_Pnt2d) –
 U –
 Index –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 U –
 UIndex (Standard_Integer) –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 U –
 Poles –
 Weights –
 P –
 U –
 Poles –
 Weights –
 P –
Return type: void
Return type: void
Return type: void
Return type: void
Return type: void

OCC.BSplCLib.
bsplclib_D1
(*args)¶ Parameters:  U (float) –
 Index (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 P (gp_Pnt2d) –
 V (gp_Vec2d) –
 U –
 Index –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V –
 U –
 UIndex (Standard_Integer) –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V –
 U –
 Poles –
 Weights –
 P –
 V –
 U –
 Poles –
 Weights –
 P –
 V –
Return type: void
Return type: void
Return type: void
Return type: void
Return type: void

OCC.BSplCLib.
bsplclib_D2
(*args)¶ Parameters:  U (float) –
 Index (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 P (gp_Pnt2d) –
 V1 (gp_Vec2d) –
 V2 (gp_Vec2d) –
 U –
 Index –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V1 –
 V2 –
 U –
 UIndex (Standard_Integer) –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V1 –
 V2 –
 U –
 Poles –
 Weights –
 P –
 V1 –
 V2 –
 U –
 Poles –
 Weights –
 P –
 V1 –
 V2 –
Return type: void
Return type: void
Return type: void
Return type: void
Return type: void

OCC.BSplCLib.
bsplclib_D3
(*args)¶ Parameters:  U (float) –
 Index (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 P (gp_Pnt2d) –
 V1 (gp_Vec2d) –
 V2 (gp_Vec2d) –
 V3 (gp_Vec2d) –
 U –
 Index –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V1 –
 V2 –
 V3 –
 U –
 UIndex (Standard_Integer) –
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 P –
 V1 –
 V2 –
 V3 –
 U –
 Poles –
 Weights –
 P –
 V1 –
 V2 –
 V3 –
 U –
 Poles –
 Weights –
 P –
 V1 –
 V2 –
 V3 –
Return type: void
Return type: void
Return type: void
Return type: void
Return type: void

OCC.BSplCLib.
bsplclib_Derivative
(*args)¶  Computes the poles of the BSpline giving the derivatives of order <Order>. The formula for the first order is Pole(i) = Degree * (Pole(i+1)  Pole(i)) / (Knots(i+Degree+1)  Knots(i+1)) This formula is repeated (Degree is decremented at each step).
Parameters:  Degree (Standard_Integer) –
 Knots (float &) –
 Dimension (Standard_Integer) –
 Length (Standard_Integer) –
 Order (Standard_Integer) –
 Poles (float &) –
Return type: void

OCC.BSplCLib.
bsplclib_Eval
(*args)¶  Perform the Boor algorithm to evaluate a point at parameter <U>, with <Degree> and <Dimension>. Poles is an array of Reals of size <Dimension> * <Degree>+1 Containing the poles. At the end <Poles> contains the current point.
Parameters:  U (float) –
 Degree (Standard_Integer) –
 Knots (float &) –
 Dimension (Standard_Integer) –
 Poles (float &) –
Return type: void
 Perform the De Boor algorithm to evaluate a point at parameter <U>, with <Degree> and <Dimension>. Poles is an array of Reals of size <Dimension> * <Degree>+1 Containing the poles. At the end <Poles> contains the current point. Poles Contain all the poles of the BsplineCurve, Knots also Contains all the knots of the BsplineCurve. ExtrapMode has two slots [0] = Degree used to extrapolate before the first knot [1] = Degre used to extrapolate after the last knot has to be between 1 and Degree
Parameters:  U (float) –
 PeriodicFlag (bool) –
 DerivativeRequest (Standard_Integer) –
 ExtrapMode (Standard_Integer &) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 ArrayDimension (Standard_Integer) –
 Poles (float &) –
 Result (float &) –
Return type: void
 Perform the De Boor algorithm to evaluate a point at parameter <U>, with <Degree> and <Dimension>. Evaluates by multiplying the Poles by the Weights and gives the homogeneous result in PolesResult that is the results of the evaluation of the numerator once it has been multiplied by the weights and in WeightsResult one has the result of the evaluation of the denominator Warning: <PolesResult> and <WeightsResult> must be dimensionned properly.
Parameters:  U (float) –
 PeriodicFlag (bool) –
 DerivativeRequest (Standard_Integer) –
 ExtrapMode (Standard_Integer &) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 ArrayDimension (Standard_Integer) –
 Poles (float &) –
 Weights (float &) –
 PolesResult (float &) –
 WeightsResult (float &) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point
Parameters:  U (float) –
 PeriodicFlag (bool) –
 HomogeneousFlag (bool) –
 ExtrapMode (Standard_Integer &) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt) –
 Weight (float &) –
Return type: void
 Perform the evaluation of the Bspline Basis and then multiplies by the weights this just evaluates the current point
Parameters:  U (float) –
 PeriodicFlag (bool) –
 HomogeneousFlag (bool) –
 ExtrapMode (Standard_Integer &) –
 Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Point (gp_Pnt2d) –
 Weight (float &) –
Return type: void

OCC.BSplCLib.
bsplclib_EvalBsplineBasis
(*args)¶  This evaluates the Bspline Basis at a given parameter Parameter up to the requested DerivativeOrder and store the result in the array BsplineBasis in the following fashion BSplineBasis(1,1) = value of first non vanishing Bspline function which has Index FirstNonZeroBsplineIndex BsplineBasis(1,2) = value of second non vanishing Bspline function which has Index FirstNonZeroBsplineIndex + 1 BsplineBasis(1,n) = value of second non vanishing non vanishing Bspline function which has Index FirstNonZeroBsplineIndex + n (n <= Order) BSplineBasis(2,1) = value of derivative of first non vanishing Bspline function which has Index FirstNonZeroBsplineIndex BSplineBasis(N,1) = value of Nth derivative of first non vanishing Bspline function which has Index FirstNonZeroBsplineIndex if N <= DerivativeOrder + 1
Parameters:  Side (Standard_Integer) –
 DerivativeOrder (Standard_Integer) –
 Order (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameter (float) –
 FirstNonZeroBsplineIndex (Standard_Integer &) –
 BsplineBasis (math_Matrix &) –
Return type: int

OCC.BSplCLib.
bsplclib_FactorBandedMatrix
(*args)¶  this factors the Banded Matrix in the LU form with a Banded storage of components of the L matrix WARNING : do not use if the Matrix is totally positive (It is the case for Bspline matrices build as above with parameters being the Schoenberg points
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 PivotIndexProblem (Standard_Integer &) –
Return type: int

OCC.BSplCLib.
bsplclib_FirstUKnotIndex
(*args)¶  Computes the index of the knots value which gives the start point of the curve.
Parameters:  Degree (Standard_Integer) –
 Mults (TColStd_Array1OfInteger &) –
Return type: int

OCC.BSplCLib.
bsplclib_FlatBezierKnots
(*args)¶  Returns pointer to statically allocated array representing flat knots for bezier curve of the specified degree. Raises OutOfRange if Degree > MaxDegree()
Parameters: Degree (Standard_Integer) – Return type: float

OCC.BSplCLib.
bsplclib_FlatIndex
(*args)¶  Computes the index of the flats knots sequence corresponding to <Index> in the knots sequence which multiplicities are <Mults>.
Parameters:  Degree (Standard_Integer) –
 Index (Standard_Integer) –
 Mults (TColStd_Array1OfInteger &) –
 Periodic (bool) –
Return type: int

OCC.BSplCLib.
bsplclib_FunctionMultiply
(*args)¶  this will multiply a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] by a function a(t) which is assumed to satisfy the following : 1. a(t) * F(t) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. the range of a(t) is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of a(t)*F(t)
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 PolesDimension (Standard_Integer) –
 Poles (float &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (float &) –
 Status (Standard_Integer &) –
Return type: void
 this will multiply a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] by a function a(t) which is assumed to satisfy the following : 1. a(t) * F(t) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. the range of a(t) is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of a(t)*F(t)
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColStd_Array1OfReal &) –
 Status (Standard_Integer &) –
Return type: void
 this will multiply a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] by a function a(t) which is assumed to satisfy the following : 1. a(t) * F(t) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. the range of a(t) is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of a(t)*F(t)
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt2d) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColgp_Array1OfPnt2d) –
 Status (Standard_Integer &) –
Return type: void
 this will multiply a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] by a function a(t) which is assumed to satisfy the following : 1. a(t) * F(t) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. the range of a(t) is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of a(t)*F(t)
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColgp_Array1OfPnt) –
 Status (Standard_Integer &) –
Return type: void

OCC.BSplCLib.
bsplclib_FunctionReparameterise
(*args)¶  This function will compose a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] with a function a(t) which is assumed to satisfy the following: 1. F(a(t)) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. a(t) defines a differentiable isomorphism between the range of FlatKnots to the range of BSplineFlatKnots which is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of F(a(t))
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 PolesDimension (Standard_Integer) –
 Poles (float &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (float &) –
 Status (Standard_Integer &) –
Return type: void
 This function will compose a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] with a function a(t) which is assumed to satisfy the following: 1. F(a(t)) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. a(t) defines a differentiable isomorphism between the range of FlatKnots to the range of BSplineFlatKnots which is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of F(a(t))
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColStd_Array1OfReal &) –
 Status (Standard_Integer &) –
Return type: void
 this will compose a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] with a function a(t) which is assumed to satisfy the following : 1. F(a(t)) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. a(t) defines a differentiable isomorphism between the range of FlatKnots to the range of BSplineFlatKnots which is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of F(a(t))
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColgp_Array1OfPnt) –
 Status (Standard_Integer &) –
Return type: void
 this will compose a given Vectorial BSpline F(t) defined by its BSplineDegree and BSplineFlatKnotsl, its Poles array which are coded as an array of Real of the form [1..NumPoles][1..PolesDimension] with a function a(t) which is assumed to satisfy the following : 1. F(a(t)) is a polynomial BSpline that can be expressed exactly as a BSpline of degree NewDegree on the knots FlatKnots 2. a(t) defines a differentiable isomorphism between the range of FlatKnots to the range of BSplineFlatKnots which is the same as the range of F(t) Warning: it is the caller’s responsability to insure that conditions 1. and 2. above are satisfied : no check whatsoever is made in this method Status will return 0 if OK else it will return the pivot index of the matrix that was inverted to compute the multiplied BSpline : the method used is interpolation at Schoenenberg points of F(a(t))
Parameters:  Function (BSplCLib_EvaluatorFunction &) –
 BSplineDegree (Standard_Integer) –
 BSplineFlatKnots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt2d) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewDegree (Standard_Integer) –
 NewPoles (TColgp_Array1OfPnt2d) –
 Status (Standard_Integer &) –
Return type: void

OCC.BSplCLib.
bsplclib_GetPole
(*args)¶  Copy the pole at position <Index> in the Boor scheme of dimension <Dimension> to <Position> in the array <Pole>. <Position> is updated.
Parameters:  Index (Standard_Integer) –
 Length (Standard_Integer) –
 Depth (Standard_Integer) –
 Dimension (Standard_Integer) –
 LocPoles (float &) –
 Position (Standard_Integer &) –
 Pole (TColStd_Array1OfReal &) –
Return type: void

OCC.BSplCLib.
bsplclib_Hunt
(*args)¶  This routine searches the position of the real value X in the ordered set of real values XX. The elements in the table XX are either monotonically increasing or monotonically decreasing. The input value Iloc is used to initialize the algorithm : if Iloc is outside of the bounds [XX.Lower(), – XX.Upper()] the bisection algorithm is used else the routine searches from a previous known position by increasing steps then converges by bisection. This routine is used to locate a knot value in a set of knots.
Parameters:  XX (TColStd_Array1OfReal &) –
 X (float) –
 Iloc (Standard_Integer &) –
Return type: void

OCC.BSplCLib.
bsplclib_IncreaseDegree
(*args)¶ Parameters:  Degree (Standard_Integer) –
 NewDegree (Standard_Integer) –
 Periodic (bool) –
 Dimension (Standard_Integer) –
 Poles (TColgp_Array1OfPnt) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Degree –
 NewDegree –
 Periodic –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 Knots –
 Mults –
 NewPoles –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots –
 NewMults –
 Degree –
 NewDegree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 NewPoles –
 NewWeights –
 NewKnots –
 NewMults –
 NewDegree –
 Poles –
 Weights –
 NewPoles –
 NewWeights –
Return type: void
Return type: void
Return type: void
Return type: void
 Increase the degree of a bspline (or bezier) curve of dimension <Dimension> form <Degree> to <NewDegree>. The number of poles in the new curve is : Poles.Length() + (NewDegree  Degree) * Number of spans Where the number of spans is : LastUKnotIndex(Mults)  FirstUKnotIndex(Mults) + 1 for a nonperiodic curve And Knots.Length()  1 for a periodic curve. The multiplicities of all knots are increased by the degree elevation. The new knots are usually the same knots with the exception of a nonperiodic curve with the first and last multiplicity not equal to Degree+1 where knots are removed form the start and the bottom untils the sum of the multiplicities is equal to NewDegree+1 at the knots corresponding to the first and last parameters of the curve. Example : Suppose a curve of degree 3 starting with following knots and multiplicities : knot : 0. 1. 2. mult : 1 2 1 The FirstUKnot is 2. because the sum of multiplicities is Degree+1 : 1 + 2 + 1 = 4 = 3 + 1 i.e. the first parameter of the curve is 2. and will still be 2. after degree elevation. Let raises this curve to degree 4. The multiplicities are increased by 2. They become 2 3 2. But we need a sum of multiplicities of 5 at knot 2. So the first knot is removed and the new knots are : knot : 1. 2. mult : 3 2 The multipicity of the first knot may also be reduced if the sum is still to big. In the most common situations (periodic curve or curve with first and last multiplicities equals to Degree+1) the knots are knot changes. The method IncreaseDegreeCountKnots can be used to compute the new number of knots.
Parameters:  NewDegree (Standard_Integer) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
Return type: void

OCC.BSplCLib.
bsplclib_IncreaseDegreeCountKnots
(*args)¶  Returns the number of knots of a curve with multiplicities <Mults> after elevating the degree from <Degree> to <NewDegree>. See the IncreaseDegree method for more comments.
Parameters:  Degree (Standard_Integer) –
 NewDegree (Standard_Integer) –
 Periodic (bool) –
 Mults (TColStd_Array1OfInteger &) –
Return type: int

OCC.BSplCLib.
bsplclib_InsertKnot
(*args)¶ Parameters:  UIndex (Standard_Integer) –
 U (float) –
 UMult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt) –
 NewWeights (TColStd_Array1OfReal &) –
Return type: void
 Insert a new knot U of multiplicity UMult in the knot sequence. The location of the new Knot should be given as an input data. UIndex locates the new knot U in the knot sequence and Knots (UIndex) < U < Knots (UIndex + 1). The new control points corresponding to this insertion are returned. Knots and Mults are not updated.
Parameters:  UIndex (Standard_Integer) –
 U (float) –
 UMult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
Return type: void

OCC.BSplCLib.
bsplclib_InsertKnots
(*args)¶ Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Dimension (Standard_Integer) –
 Poles (TColgp_Array1OfPnt) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 AddKnots (TColStd_Array1OfReal &) –
 AddMults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Epsilon (float) –
 Add (bool) – default value is Standard_True
 Degree –
 Periodic –
 Dimension –
 Poles –
 Knots –
 Mults –
 AddKnots –
 AddMults –
 NewPoles –
 NewKnots –
 NewMults –
 Epsilon –
 Add – default value is Standard_True
 Degree –
 Periodic –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 Knots –
 Mults –
 AddKnots –
 AddMults –
 NewPoles –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots –
 NewMults –
 Epsilon –
 Add – default value is Standard_True
 Degree –
 Periodic –
 Poles –
 Weights –
 Knots –
 Mults –
 AddKnots –
 AddMults –
 NewPoles –
 NewWeights –
 NewKnots –
 NewMults –
 Epsilon –
 Add – default value is Standard_True
Return type: void
Return type: void
Return type: void
Return type: void
 Insert a sequence of knots <AddKnots> with multiplicities <AddMults>. <AddKnots> must be a non decreasing sequence and verifies : Knots(Knots.Lower()) <= AddKnots(AddKnots.Lower()) Knots(Knots.Upper()) >= AddKnots(AddKnots.Upper()) The NewPoles and NewWeights arrays must have a length : Poles.Length() + Sum(AddMults()) When a knot to insert is identic to an existing knot the multiplicities are added. Epsilon is used to test knots for equality. When AddMult is negative or null the knot is not inserted. No multiplicity will becomes higher than the degree. The new Knots and Multiplicities are copied in <NewKnots> and <NewMults>. All the New arrays should be correctly dimensioned. When all the new knots are existing knots, i.e. only the multiplicities will change it is safe to use the same arrays as input and output.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 AddKnots (TColStd_Array1OfReal &) –
 AddMults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Epsilon (float) –
 Add (bool) – default value is Standard_True
Return type: void
 Insert a sequence of knots <AddKnots> with multiplicities <AddMults>. <AddKnots> must be a non decreasing sequence and verifies : Knots(Knots.Lower()) <= AddKnots(AddKnots.Lower()) Knots(Knots.Upper()) >= AddKnots(AddKnots.Upper()) The NewPoles and NewWeights arrays must have a length : Poles.Length() + Sum(AddMults()) When a knot to insert is identic to an existing knot the multiplicities are added. Epsilon is used to test knots for equality. When AddMult is negative or null the knot is not inserted. No multiplicity will becomes higher than the degree. The new Knots and Multiplicities are copied in <NewKnots> and <NewMults>. All the New arrays should be correctly dimensioned. When all the new knots are existing knots, i.e. only the multiplicities will change it is safe to use the same arrays as input and output.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 AddKnots (TColStd_Array1OfReal &) –
 AddMults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Epsilon (float) –
 Add (bool) – default value is Standard_True
Return type: void

OCC.BSplCLib.
bsplclib_Interpolate
(*args)¶  Performs the interpolation of the data given in the Poles array according to the requests in ContactOrderArray that is : if ContactOrderArray(i) has value d it means that Poles(i) containes the dth derivative of the function to be interpolated. The length L of the following arrays must be the same : Parameters, ContactOrderArray, Poles, The length of FlatKnots is Degree + L + 1 Warning: the method used to do that interpolation is gauss elimination WITHOUT pivoting. Thus if the diagonal is not dominant there is no guarantee that the algorithm will work. Nevertheless for Cubic interpolation or interpolation at Scheonberg points the method will work The InversionProblem will report 0 if there was no problem else it will give the index of the faulty pivot
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
 ContactOrderArray (TColStd_Array1OfInteger &) –
 Poles (TColgp_Array1OfPnt) –
 InversionProblem (Standard_Integer &) –
Return type: void
 Performs the interpolation of the data given in the Poles array according to the requests in ContactOrderArray that is : if ContactOrderArray(i) has value d it means that Poles(i) containes the dth derivative of the function to be interpolated. The length L of the following arrays must be the same : Parameters, ContactOrderArray, Poles, The length of FlatKnots is Degree + L + 1 Warning: the method used to do that interpolation is gauss elimination WITHOUT pivoting. Thus if the diagonal is not dominant there is no guarantee that the algorithm will work. Nevertheless for Cubic interpolation at knots or interpolation at Scheonberg points the method will work. The InversionProblem w ll report 0 if there was no problem else it will give the index of the faulty pivot
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
 ContactOrderArray (TColStd_Array1OfInteger &) –
 Poles (TColgp_Array1OfPnt2d) –
 InversionProblem (Standard_Integer &) –
Return type: void
 Performs the interpolation of the data given in the Poles array according to the requests in ContactOrderArray that is : if ContactOrderArray(i) has value d it means that Poles(i) containes the dth derivative of the function to be interpolated. The length L of the following arrays must be the same : Parameters, ContactOrderArray, Poles, The length of FlatKnots is Degree + L + 1 Warning: the method used to do that interpolation is gauss elimination WITHOUT pivoting. Thus if the diagonal is not dominant there is no guarantee that the algorithm will work. Nevertheless for Cubic interpolation at knots or interpolation at Scheonberg points the method will work. The InversionProblem will report 0 if there was no problem else it will give the index of the faulty pivot
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
 ContactOrderArray (TColStd_Array1OfInteger &) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 InversionProblem (Standard_Integer &) –
Return type: void
 Performs the interpolation of the data given in the Poles array according to the requests in ContactOrderArray that is : if ContactOrderArray(i) has value d it means that Poles(i) containes the dth derivative of the function to be interpolated. The length L of the following arrays must be the same : Parameters, ContactOrderArray, Poles, The length of FlatKnots is Degree + L + 1 Warning: the method used to do that interpolation is gauss elimination WITHOUT pivoting. Thus if the diagonal is not dominant there is no guarantee that the algorithm will work. Nevertheless for Cubic interpolation at knots or interpolation at Scheonberg points the method will work. The InversionProblem w ll report 0 if there was no problem else it will give the i
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
 ContactOrderArray (TColStd_Array1OfInteger &) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 InversionProblem (Standard_Integer &) –
Return type: void
 Performs the interpolation of the data given in the Poles array according to the requests in ContactOrderArray that is : if ContactOrderArray(i) has value d it means that Poles(i) containes the dth derivative of the function to be interpolated. The length L of the following arrays must be the same : Parameters, ContactOrderArray The length of FlatKnots is Degree + L + 1 The PolesArray is an seen as an Array[1..N][1..ArrayDimension] with N = tge length of the parameters array Warning: the method used to do that interpolation is gauss elimination WITHOUT pivoting. Thus if the diagonal is not dominant there is no guarantee that the algorithm will work. Nevertheless for Cubic interpolation or interpolation at Scheonberg points the method will work The InversionProblem will report 0 if there was no problem else it will give the index of the faulty pivot
Parameters:  Degree (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Parameters (TColStd_Array1OfReal &) –
 ContactOrderArray (TColStd_Array1OfInteger &) –
 ArrayDimension (Standard_Integer) –
 Poles (float &) –
 InversionProblem (Standard_Integer &) –
 Degree –
 FlatKnots –
 Parameters –
 ContactOrderArray –
 ArrayDimension –
 Poles –
 Weights (float &) –
 InversionProblem –
Return type: void
Return type: void

OCC.BSplCLib.
bsplclib_IsRational
(*args)¶  Returns False if all the weights of the array <Weights> between I1 an I2 are identic. Epsilon is used for comparing weights. If Epsilon is 0. the Epsilon of the first weight is used.
Parameters:  Weights (TColStd_Array1OfReal &) –
 I1 (Standard_Integer) –
 I2 (Standard_Integer) –
 Epsilon (float) – default value is 0.0
Return type: bool
 Returns False if all the weights of the array <Weights> between I1 an I2 are identic. Epsilon is used for comparing weights. If Epsilon is 0. the Epsilon of the first weight is used.
Parameters:  Weights (TColStd_Array1OfReal &) –
 I1 (Standard_Integer) –
 I2 (Standard_Integer) –
 Epsilon (float) – default value is 0.0
Return type: bool

OCC.BSplCLib.
bsplclib_KnotAnalysis
(*args)¶  Analyzes the array of knots. Returns the form and the maximum knot multiplicity.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 CKnots (TColStd_Array1OfReal &) –
 CMults (TColStd_Array1OfInteger &) –
 KnotForm (GeomAbs_BSplKnotDistribution &) –
 MaxKnotMult (Standard_Integer &) –
Return type: void

OCC.BSplCLib.
bsplclib_KnotForm
(*args)¶  Analyses if the knots distribution is ‘Uniform’ or ‘NonUniform’ between the knot FromK1 and the knot ToK2. There is no repetition of knot in the knots’sequence <Knots>.
Parameters:  Knots (TColStd_Array1OfReal &) –
 FromK1 (Standard_Integer) –
 ToK2 (Standard_Integer) –
Return type: BSplCLib_KnotDistribution

OCC.BSplCLib.
bsplclib_KnotSequence
(*args)¶ Parameters:  Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 KnotSeq (TColStd_Array1OfReal &) –
Return type: void
 Computes the sequence of knots KnotSeq with repetition of the knots of multiplicity greater than 1. Length of KnotSeq must be KnotSequenceLength(Mults,Degree,Periodic)
Parameters:  Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 KnotSeq (TColStd_Array1OfReal &) –
Return type: void

OCC.BSplCLib.
bsplclib_KnotSequenceLength
(*args)¶  Returns the length of the sequence of knots with repetition. Periodic : Sum(Mults(i), i = Mults.Lower(); i <= Mults.Upper()); Non Periodic : Sum(Mults(i); i = Mults.Lower(); i < Mults.Upper()) + 2 * Degree
Parameters:  Mults (TColStd_Array1OfInteger &) –
 Degree (Standard_Integer) –
 Periodic (bool) –
Return type: int

OCC.BSplCLib.
bsplclib_Knots
(*args)¶  Computes the sequence of knots Knots without repetition of the knots of multiplicity greater than 1. Length of <Knots> and <Mults> must be KnotsLength(KnotSequence,Periodic)
Parameters:  KnotSeq (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 Periodic (bool) – default value is Standard_False
Return type: void
 Computes the sequence of knots Knots without repetition of the knots of multiplicity greater than 1. Length of <Knots> and <Mults> must be KnotsLength(KnotSequence,Periodic)
Parameters:  KnotSeq (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 Periodic (bool) – default value is Standard_False
Return type: void

OCC.BSplCLib.
bsplclib_KnotsLength
(*args)¶  Returns the length of the sequence of knots (and Mults) without repetition.
Parameters:  KnotSeq (TColStd_Array1OfReal &) –
 Periodic (bool) – default value is Standard_False
Return type: int
 Returns the length of the sequence of knots (and Mults) without repetition.
Parameters:  KnotSeq (TColStd_Array1OfReal &) –
 Periodic (bool) – default value is Standard_False
Return type: int

OCC.BSplCLib.
bsplclib_LastUKnotIndex
(*args)¶  Computes the index of the knots value which gives the end point of the curve.
Parameters:  Degree (Standard_Integer) –
 Mults (TColStd_Array1OfInteger &) –
Return type: int

OCC.BSplCLib.
bsplclib_LocateParameter
(*args)¶  Locates the parametric value U in the knots sequence between the knot K1 and the knot K2. The value return in Index verifies. Knots(Index) <= U < Knots(Index + 1) if U <= Knots (K1) then Index = K1 if U >= Knots (K2) then Index = K2  1 If Periodic is True U may be modified to fit in the range Knots(K1), Knots(K2). In any case the correct value is returned in NewU. Warnings :Index is used as input data to initialize the searching function. Warning: Knots have to be ‘withe repetitions’
Parameters:  Degree (Standard_Integer) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 U (float) –
 IsPeriodic (bool) –
 FromK1 (Standard_Integer) –
 ToK2 (Standard_Integer) –
 KnotIndex (Standard_Integer &) –
 NewU (float &) –
Return type: void
 Locates the parametric value U in the knots sequence between the knot K1 and the knot K2. The value return in Index verifies. Knots(Index) <= U < Knots(Index + 1) if U <= Knots (K1) then Index = K1 if U >= Knots (K2) then Index = K2  1 If Periodic is True U may be modified to fit in the range Knots(K1), Knots(K2). In any case the correct value is returned in NewU. Warnings :Index is used as input data to initialize the searching function. Warning: Knots have to be ‘flat’
Parameters:  Degree (Standard_Integer) –
 Knots (TColStd_Array1OfReal &) –
 U (float) –
 IsPeriodic (bool) –
 FromK1 (Standard_Integer) –
 ToK2 (Standard_Integer) –
 KnotIndex (Standard_Integer &) –
 NewU (float &) –
 Degree –
 Knots –
 Mults (TColStd_Array1OfInteger &) –
 U –
 Periodic (bool) –
 Index (Standard_Integer &) –
 NewU –
Return type: void
Return type: void

OCC.BSplCLib.
bsplclib_MaxDegree
()¶  returns the degree maxima for a BSplineCurve.
Return type: int

OCC.BSplCLib.
bsplclib_MaxKnotMult
(*args)¶  Finds the greatest multiplicity in a set of knots between K1 and K2. Mults is the multiplicity associated with each knot value.
Parameters:  Mults (TColStd_Array1OfInteger &) –
 K1 (Standard_Integer) –
 K2 (Standard_Integer) –
Return type: int

OCC.BSplCLib.
bsplclib_MergeBSplineKnots
(*args)¶  Merges two knot vector by setting the starting and ending values to StartValue and EndValue
Parameters:  Tolerance (float) –
 StartValue (float) –
 EndValue (float) –
 Degree1 (Standard_Integer) –
 Knots1 (TColStd_Array1OfReal &) –
 Mults1 (TColStd_Array1OfInteger &) –
 Degree2 (Standard_Integer) –
 Knots2 (TColStd_Array1OfReal &) –
 Mults2 (TColStd_Array1OfInteger &) –
 NumPoles (Standard_Integer &) –
 NewKnots (Handle_TColStd_HArray1OfReal &) –
 NewMults (Handle_TColStd_HArray1OfInteger &) –
Return type: void

OCC.BSplCLib.
bsplclib_MinKnotMult
(*args)¶  Finds the lowest multiplicity in a set of knots between K1 and K2. Mults is the multiplicity associated with each knot value.
Parameters:  Mults (TColStd_Array1OfInteger &) –
 K1 (Standard_Integer) –
 K2 (Standard_Integer) –
Return type: int

OCC.BSplCLib.
bsplclib_MovePoint
(*args)¶  Find the new poles which allows an old point (with a given u as parameter) to reach a new position Index1 and Index2 indicate the range of poles we can move (1, NbPoles1) or (2, NbPoles) > no constraint for one side don’t enter (1,NbPoles) > error: rigid move (2, NbPoles1) > the ends are enforced (3, NbPoles2) > the ends and the tangency are enforced if Problem in BSplineBasis calculation, no change for the curve and FirstIndex, LastIndex = 0
Parameters:  U (float) –
 Displ (gp_Vec2d) –
 Index1 (Standard_Integer) –
 Index2 (Standard_Integer) –
 Degree (Standard_Integer) –
 Rational (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 FirstIndex (Standard_Integer &) –
 LastIndex (Standard_Integer &) –
 NewPoles (TColgp_Array1OfPnt2d) –
Return type: void
 Find the new poles which allows an old point (with a given u as parameter) to reach a new position Index1 and Index2 indicate the range of poles we can move (1, NbPoles1) or (2, NbPoles) > no constraint for one side don’t enter (1,NbPoles) > error: rigid move (2, NbPoles1) > the ends are enforced (3, NbPoles2) > the ends and the tangency are enforced if Problem in BSplineBasis calculation, no change for the curve and FirstIndex, LastIndex = 0
Parameters:  U (float) –
 Displ (gp_Vec) –
 Index1 (Standard_Integer) –
 Index2 (Standard_Integer) –
 Degree (Standard_Integer) –
 Rational (bool) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 FirstIndex (Standard_Integer &) –
 LastIndex (Standard_Integer &) –
 NewPoles (TColgp_Array1OfPnt) –
Return type: void

OCC.BSplCLib.
bsplclib_MovePointAndTangent
(*args)¶  This is the dimension free version of the utility U is the parameter must be within the first FlatKnots and the last FlatKnots Delta is the amount the curve has to be moved DeltaDerivative is the amount the derivative has to be moved. Delta and DeltaDerivative must be array of dimension ArrayDimension Degree is the degree of the BSpline and the FlatKnots are the knots of the BSpline Starting Condition if = 1 means the starting point of the curve can move = 0 means the starting point of the cuve cannot move but tangen starting point of the curve cannot move = 1 means the starting point and tangents cannot move = 2 means the starting point tangent and curvature cannot move = ... Same holds for EndingCondition Poles are the poles of the curve Weights are the weights of the curve if Rational = Standard_True NewPoles are the poles of the deformed curve ErrorStatus will be 0 if no error happened 1 if there are not enough knots/poles the imposed conditions The way to solve this problem is to add knots to the BSpline If StartCondition = 1 and EndCondition = 1 then you need at least 4 + 2 = 6 poles so for example to have a C1 cubic you will need have at least 2 internal knots.
Parameters:  U (float) –
 ArrayDimension (Standard_Integer) –
 Delta (float &) –
 DeltaDerivative (float &) –
 Tolerance (float) –
 Degree (Standard_Integer) –
 Rational (bool) –
 StartingCondition (Standard_Integer) –
 EndingCondition (Standard_Integer) –
 Poles (float &) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewPoles (float &) –
 ErrorStatus (Standard_Integer &) –
Return type: void
 This is the dimension free version of the utility U is the parameter must be within the first FlatKnots and the last FlatKnots Delta is the amount the curve has to be moved DeltaDerivative is the amount the derivative has to be moved. Delta and DeltaDerivative must be array of dimension ArrayDimension Degree is the degree of the BSpline and the FlatKnots are the knots of the BSpline Starting Condition if = 1 means the starting point of the curve can move = 0 means the starting point of the cuve cannot move but tangen starting point of the curve cannot move = 1 means the starting point and tangents cannot move = 2 means the starting point tangent and curvature cannot move = ... Same holds for EndingCondition Poles are the poles of the curve Weights are the weights of the curve if Rational = Standard_True NewPoles are the poles of the deformed curve ErrorStatus will be 0 if no error happened 1 if there are not enough knots/poles the imposed conditions The way to solve this problem is to add knots to the BSpline If StartCondition = 1 and EndCondition = 1 then you need at least 4 + 2 = 6 poles so for example to have a C1 cubic you will need have at least 2 internal knots.
Parameters:  U (float) –
 Delta (gp_Vec) –
 DeltaDerivative (gp_Vec) –
 Tolerance (float) –
 Degree (Standard_Integer) –
 Rational (bool) –
 StartingCondition (Standard_Integer) –
 EndingCondition (Standard_Integer) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewPoles (TColgp_Array1OfPnt) –
 ErrorStatus (Standard_Integer &) –
Return type: void
 This is the dimension free version of the utility U is the parameter must be within the first FlatKnots and the last FlatKnots Delta is the amount the curve has to be moved DeltaDerivative is the amount the derivative has to be moved. Delta and DeltaDerivative must be array of dimension ArrayDimension Degree is the degree of the BSpline and the FlatKnots are the knots of the BSpline Starting Condition if = 1 means the starting point of the curve can move = 0 means the starting point of the cuve cannot move but tangen starting point of the curve cannot move = 1 means the starting point and tangents cannot move = 2 means the starting point tangent and curvature cannot move = ... Same holds for EndingCondition Poles are the poles of the curve Weights are the weights of the curve if Rational = Standard_True NewPoles are the poles of the deformed curve ErrorStatus will be 0 if no error happened 1 if there are not enough knots/poles the imposed conditions The way to solve this problem is to add knots to the BSpline If StartCondition = 1 and EndCondition = 1 then you need at least 4 + 2 = 6 poles so for example to have a C1 cubic you will need have at least 2 internal knots.
Parameters:  U (float) –
 Delta (gp_Vec2d) –
 DeltaDerivative (gp_Vec2d) –
 Tolerance (float) –
 Degree (Standard_Integer) –
 Rational (bool) –
 StartingCondition (Standard_Integer) –
 EndingCondition (Standard_Integer) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 ErrorStatus (Standard_Integer &) –
Return type: void

OCC.BSplCLib.
bsplclib_MultForm
(*args)¶  Analyses the distribution of multiplicities between the knot FromK1 and the Knot ToK2.
Parameters:  Mults (TColStd_Array1OfInteger &) –
 FromK1 (Standard_Integer) –
 ToK2 (Standard_Integer) –
Return type: BSplCLib_MultDistribution

OCC.BSplCLib.
bsplclib_NbPoles
(*args)¶  Returns the number of poles of the curve. Returns 0 if one of the multiplicities is incorrect. * Non positive. * Greater than Degree, or Degree+1 at the first and last knot of a non periodic curve. * The last periodicity on a periodic curve is not equal to the first.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Mults (TColStd_Array1OfInteger &) –
Return type: int

OCC.BSplCLib.
bsplclib_NoMults
()¶  Used as argument for a flatknots evaluation.
Return type: TColStd_Array1OfInteger

OCC.BSplCLib.
bsplclib_NoWeights
()¶  Used as argument for a non rational curve.
Return type: TColStd_Array1OfReal

OCC.BSplCLib.
bsplclib_PoleIndex
(*args)¶  Return the index of the first Pole to use on the span Mults(Index)  Mults(Index+1). This index must be added to Poles.Lower().
Parameters:  Degree (Standard_Integer) –
 Index (Standard_Integer) –
 Periodic (bool) –
 Mults (TColStd_Array1OfInteger &) –
Return type: int

OCC.BSplCLib.
bsplclib_PolesCoefficients
(*args)¶ Parameters:  Poles (TColgp_Array1OfPnt) –
 CachePoles (TColgp_Array1OfPnt) –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 CachePoles –
 CacheWeights (TColStd_Array1OfReal &) –
 Poles –
 CachePoles –
Return type: void
Return type: void
Return type: void
 Encapsulation of BuildCache to perform the evaluation of the Taylor expansion for beziercurves at parameter 0. Warning: To be used for Beziercurves ONLY!!!
Parameters:  Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 CachePoles (TColgp_Array1OfPnt) –
 CacheWeights (TColStd_Array1OfReal &) –
Return type: void

OCC.BSplCLib.
bsplclib_PrepareInsertKnots
(*args)¶  Returns in <NbPoles, NbKnots> the new number of poles and knots if the sequence of knots <AddKnots, AddMults> is inserted in the sequence <Knots, Mults>. Epsilon is used to compare knots for equality. If Add is True the multiplicities on equal knots are added. If Add is False the max value of the multiplicities is kept. Return False if : The knew knots are knot increasing. The new knots are not in the range.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 AddKnots (TColStd_Array1OfReal &) –
 AddMults (TColStd_Array1OfInteger &) –
 NbPoles (Standard_Integer &) –
 NbKnots (Standard_Integer &) –
 Epsilon (float) –
 Add (bool) – default value is Standard_True
Return type: bool
 Returns in <NbPoles, NbKnots> the new number of poles and knots if the sequence of knots <AddKnots, AddMults> is inserted in the sequence <Knots, Mults>. Epsilon is used to compare knots for equality. If Add is True the multiplicities on equal knots are added. If Add is False the max value of the multiplicities is kept. Return False if : The knew knots are knot increasing. The new knots are not in the range.
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 AddKnots (TColStd_Array1OfReal &) –
 AddMults (TColStd_Array1OfInteger &) –
 NbPoles (Standard_Integer &) –
 NbKnots (Standard_Integer &) –
 Epsilon (float) –
 Add (bool) – default value is Standard_True
Return type: bool

OCC.BSplCLib.
bsplclib_PrepareTrimming
(*args)¶  Set in <NbKnots> and <NbPoles> the number of Knots and Poles of the curve resulting of the trimming of the BSplinecurve definded with <degree>, <knots>, <mults>
Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 U1 (float) –
 U2 (float) –
 NbKnots (Standard_Integer &) –
 NbPoles (Standard_Integer &) –
Return type: void

OCC.BSplCLib.
bsplclib_PrepareUnperiodize
(*args)¶  Set in <NbKnots> and <NbPolesToAdd> the number of Knots and Poles of the NotPeriodic Curve identical at the periodic curve with a degree <Degree> , a knotsdistribution with Multiplicities <Mults>.
Parameters:  Degree (Standard_Integer) –
 Mults (TColStd_Array1OfInteger &) –
 NbKnots (Standard_Integer &) –
 NbPoles (Standard_Integer &) –
Return type: void

OCC.BSplCLib.
bsplclib_RaiseMultiplicity
(*args)¶ Parameters:  KnotIndex (Standard_Integer) –
 Mult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt) –
 NewWeights (TColStd_Array1OfReal &) –
Return type: void
 Raise the multiplicity of knot to <UMult>. The new control points are returned. Knots and Mults are not updated.
Parameters:  KnotIndex (Standard_Integer) –
 Mult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
Return type: void

OCC.BSplCLib.
bsplclib_RemoveKnot
(*args)¶ Parameters:  Index (Standard_Integer) –
 Mult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Dimension (Standard_Integer) –
 Poles (TColgp_Array1OfPnt) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Tolerance (float) –
 Index –
 Mult –
 Degree –
 Periodic –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 Knots –
 Mults –
 NewPoles –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots –
 NewMults –
 Tolerance –
Return type: bool
Return type: bool
 Decrement the multiplicity of <Knots(Index)> to <Mult>. If <Mult> is null the knot is removed. As there are two ways to compute the new poles the midlle will be used as long as the distance is lower than Tolerance. If a distance is bigger than tolerance the methods returns False and the new arrays are not modified. A low tolerance can be used to test if the knot can be removed without modifying the curve. A high tolerance can be used to ‘smooth’ the curve.
Parameters:  Index (Standard_Integer) –
 Mult (Standard_Integer) –
 Degree (Standard_Integer) –
 Periodic (bool) –
 Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 NewWeights (TColStd_Array1OfReal &) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 Tolerance (float) –
Return type: bool

OCC.BSplCLib.
bsplclib_Reparametrize
(*args)¶  Reparametrizes a Bspline curve to [U1, U2]. The knot values are recomputed such that Knots (Lower) = U1 and Knots (Upper) = U2 but the knot form is not modified. Warnings : In the array Knots the values must be in ascending order. U1 must not be equal to U2 to avoid division by zero.
Parameters:  U1 (float) –
 U2 (float) –
 Knots (TColStd_Array1OfReal &) –
Return type: void

OCC.BSplCLib.
bsplclib_Resolution
(*args)¶  given a tolerance in 3D space returns a tolerance in U parameter space such that all u1 and u0 in the domain of the curve f(u)  u1  u0  < UTolerance and we have f (u1)  f (u0) < Tolerance3D
Parameters:  PolesArray (float &) –
 ArrayDimension (Standard_Integer) –
 NumPoles (Standard_Integer) –
 Weights (TColStd_Array1OfReal &) –
 FlatKnots (TColStd_Array1OfReal &) –
 Degree (Standard_Integer) –
 Tolerance3D (float) –
 UTolerance (float &) –
Return type: void
 given a tolerance in 3D space returns a tolerance in U parameter space such that all u1 and u0 in the domain of the curve f(u)  u1  u0  < UTolerance and we have f (u1)  f (u0) < Tolerance3D
Parameters:  Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 NumPoles (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Degree (Standard_Integer) –
 Tolerance3D (float) –
 UTolerance (float &) –
Return type: void
 given a tolerance in 3D space returns a tolerance in U parameter space such that all u1 and u0 in the domain of the curve f(u)  u1  u0  < UTolerance and we have f (u1)  f (u0) < Tolerance3D
Parameters:  Poles (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
 NumPoles (Standard_Integer) –
 FlatKnots (TColStd_Array1OfReal &) –
 Degree (Standard_Integer) –
 Tolerance3D (float) –
 UTolerance (float &) –
Return type: void

OCC.BSplCLib.
bsplclib_Reverse
(*args)¶  Reverses the array knots to become the knots sequence of the reversed curve.
Parameters: Knots (TColStd_Array1OfReal &) – Return type: void  Reverses the array of multiplicities.
Parameters: Mults (TColStd_Array1OfInteger &) – Return type: void  Reverses the array of poles. Last is the index of the new first pole. On a non periodic curve last is Poles.Upper(). On a periodic curve last is (number of flat knots  degree  1) or (sum of multiplicities(but for the last) + degree  1)
Parameters:  Poles (TColgp_Array1OfPnt) –
 Last (Standard_Integer) –
Return type: void
 Reverses the array of poles.
Parameters:  Poles (TColgp_Array1OfPnt2d) –
 Last (Standard_Integer) –
Return type: void
 Reverses the array of poles.
Parameters:  Weights (TColStd_Array1OfReal &) –
 Last (Standard_Integer) –
Return type: void

OCC.BSplCLib.
bsplclib_SolveBandedSystem
(*args)¶  This solves the system Matrix.X = B with when Matrix is factored in LU form The Array is an seen as an Array[1..N][1..ArrayDimension] with N = the rank of the matrix Matrix. The result is stored in Array when each coordinate is solved that is B is the array whose values are B[i] = Array[i][p] for each p in 1..ArrayDimension
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 ArrayDimension (Standard_Integer) –
 Array (float &) –
Return type: int
 This solves the system Matrix.X = B with when Matrix is factored in LU form The Array has the length of the rank of the matrix Matrix. The result is stored in Array when each coordinate is solved that is B is the array whose values are B[i] = Array[i][p] for each p in 1..ArrayDimension
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 Array (TColgp_Array1OfPnt2d) –
Return type: int
 This solves the system Matrix.X = B with when Matrix is factored in LU form The Array has the length of the rank of the matrix Matrix. The result is stored in Array when each coordinate is solved that is B is the array whose values are B[i] = Array[i][p] for each p in 1..ArrayDimension
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 Array (float &) –
 Matrix –
 UpperBandWidth –
 LowerBandWidth –
 HomogenousFlag (bool) –
 ArrayDimension (Standard_Integer) –
 Array –
 Weights (float &) –
Return type: int
Return type: int
 This solves the system Matrix.X = B with when Matrix is factored in LU form The Array is an seen as an Array[1..N][1..ArrayDimension] with N = the rank of the matrix Matrix. The result is stored in Array when each coordinate is solved that is B is the array whose values are B[i] = Array[i][p] for each p in 1..ArrayDimension. If HomogeneousFlag == 0 the Poles are multiplied by the Weights uppon Entry and once interpolation is carried over the result of the poles are divided by the result of the interpolation of the weights. Otherwise if HomogenousFlag == 1 the Poles and Weigths are treated homogenously that is that those are interpolated as they are and result is returned without division by the interpolated weigths.
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 HomogenousFlag (bool) –
 Array (TColgp_Array1OfPnt2d) –
 Weights (TColStd_Array1OfReal &) –
Return type: int
 This solves the system Matrix.X = B with when Matrix is factored in LU form The Array is an seen as an Array[1..N][1..ArrayDimension] with N = the rank of the matrix Matrix. The result is stored in Array when each coordinate is solved that is B is the array whose values are B[i] = Array[i][p] for each p in 1..ArrayDimension If HomogeneousFlag == 0 the Poles are multiplied by the Weights uppon Entry and once interpolation is carried over the result of the poles are divided by the result of the interpolation of the weights. Otherwise if HomogenousFlag == 1 the Poles and Weigths are treated homogenously that is that those are interpolated as they are and result is returned without division by the interpolated weigths.
Parameters:  Matrix (math_Matrix &) –
 UpperBandWidth (Standard_Integer) –
 LowerBandWidth (Standard_Integer) –
 HomogeneousFlag (bool) –
 Array (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
Return type: int

OCC.BSplCLib.
bsplclib_TangExtendToConstraint
(*args)¶  Extend a BSpline nD using the tangency map <C1Coefficient> is the coefficient of reparametrisation <Continuity> must be equal to 1, 2 or 3. <Degree> must be greater or equal than <Continuity> + 1. Warning: <KnotsResult> and <PolesResult> must be dimensionned properly.
Parameters:  FlatKnots (TColStd_Array1OfReal &) –
 C1Coefficient (float) –
 NumPoles (Standard_Integer) –
 Poles (float &) –
 Dimension (Standard_Integer) –
 Degree (Standard_Integer) –
 ConstraintPoint (TColStd_Array1OfReal &) –
 Continuity (Standard_Integer) –
 After (bool) –
 NbPolesResult (Standard_Integer &) –
 NbKnotsRsult (Standard_Integer &) –
 KnotsResult (float &) –
 PolesResult (float &) –
Return type: void

OCC.BSplCLib.
bsplclib_Trimming
(*args)¶ Parameters:  Degree (Standard_Integer) –
 Periodic (bool) –
 Dimension (Standard_Integer) –
 Knots (TColStd_Array1OfReal &) –
 Mults (TColStd_Array1OfInteger &) –
 Poles (TColgp_Array1OfPnt2d) –
 U1 (float) –
 U2 (float) –
 NewKnots (TColStd_Array1OfReal &) –
 NewMults (TColStd_Array1OfInteger &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 Degree –
 Periodic –
 Knots –
 Mults –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 U1 –
 U2 –
 NewKnots –
 NewMults –
 NewPoles –
 NewWeights (TColStd_Array1OfReal &) –
 Degree –
 Periodic –
 Knots –
 Mults –
 Poles –
 Weights –
 U1 –
 U2 –
 NewKnots –
 NewMults –
 NewPoles –
 NewWeights –
Return type: void
Return type: void
Return type: void

OCC.BSplCLib.
bsplclib_Unperiodize
(*args)¶ Parameters:  Degree (Standard_Integer) –
 Dimension (Standard_Integer) –
 Mults (TColStd_Array1OfInteger &) –
 Knots (TColStd_Array1OfReal &) –
 Poles (TColgp_Array1OfPnt2d) –
 NewMults (TColStd_Array1OfInteger &) –
 NewKnots (TColStd_Array1OfReal &) –
 NewPoles (TColgp_Array1OfPnt2d) –
 Degree –
 Mults –
 Knots –
 Poles –
 Weights (TColStd_Array1OfReal &) –
 NewMults –
 NewKnots –
 NewPoles –
 NewWeights (TColStd_Array1OfReal &) –
 Degree –
 Mults –
 Knots –
 Poles –
 Weights –
 NewMults –
 NewKnots –
 NewPoles –
 NewWeights –
Return type: void
Return type: void
Return type: void