OCC.Law module

class Handle_Law_BSpFunc(*args)

Bases: OCC.Law.Handle_Law_Function

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_Law_BSpline(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_Law_Composite(*args)

Bases: OCC.Law.Handle_Law_Function

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_Law_Constant(*args)

Bases: OCC.Law.Handle_Law_Function

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_Law_Function(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_Law_Interpol(*args)

Bases: OCC.Law.Handle_Law_BSpFunc

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_Law_Linear(*args)

Bases: OCC.Law.Handle_Law_Function

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_Law_ListNodeOfLaws(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_Law_S(*args)

Bases: OCC.Law.Handle_Law_BSpFunc

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Law_BSpFunc(*args)

Bases: OCC.Law.Law_Function

Return type:

None

Parameters:
  • C (Handle_Law_BSpline &) –
  • First (float) –
  • Last (float) –
Return type:

None

Curve()
Return type:Handle_Law_BSpline
GetHandle()
SetCurve()
Parameters:C (Handle_Law_BSpline &) –
Return type:None
thisown

The membership flag

class Law_BSpline(*args)

Bases: OCC.MMgt.MMgt_TShared

  • Creates a non-rational B_spline curve on the basis <Knots, Multiplicities> of degree <Degree>.
Parameters:
  • Poles (TColStd_Array1OfReal &) –
  • Knots (TColStd_Array1OfReal &) –
  • Multiplicities (TColStd_Array1OfInteger &) –
  • Degree (int) –
  • Periodic (bool) – default value is Standard_False
Return type:

None

  • Creates a rational B_spline curve on the basis <Knots, Multiplicities> of degree <Degree>.
Parameters:
  • Poles (TColStd_Array1OfReal &) –
  • Weights (TColStd_Array1OfReal &) –
  • Knots (TColStd_Array1OfReal &) –
  • Multiplicities (TColStd_Array1OfInteger &) –
  • Degree (int) –
  • Periodic (bool) – default value is Standard_False
Return type:

None

Continuity()
  • Returns the global continuity of the curve : C0 : only geometric continuity, C1 : continuity of the first derivative all along the Curve, C2 : continuity of the second derivative all along the Curve, C3 : continuity of the third derivative all along the Curve, CN : the order of continuity is infinite. For a B-spline curve of degree d if a knot Ui has a multiplicity p the B-spline curve is only Cd-p continuous at Ui. So the global continuity of the curve can’t be greater than Cd-p where p is the maximum multiplicity of the interior Knots. In the interior of a knot span the curve is infinitely continuously differentiable.
Return type:GeomAbs_Shape
Copy()
Return type:Handle_Law_BSpline
D0()
Parameters:
  • U (float) –
  • P (float &) –
Return type:

None

D1()
Parameters:
  • U (float) –
  • P (float &) –
  • V1 (float &) –
Return type:

None

D2()
Parameters:
  • U (float) –
  • P (float &) –
  • V1 (float &) –
  • V2 (float &) –
Return type:

None

D3()
Parameters:
  • U (float) –
  • P (float &) –
  • V1 (float &) –
  • V2 (float &) –
  • V3 (float &) –
Return type:

None

DN()
  • The following functions computes the point of parameter U and the derivatives at this point on the B-spline curve arc defined between the knot FromK1 and the knot ToK2. U can be out of bounds [Knot (FromK1), Knot (ToK2)] but for the computation we only use the definition of the curve between these two knots. This method is useful to compute local derivative, if the order of continuity of the whole curve is not greater enough. Inside the parametric domain Knot (FromK1), Knot (ToK2) the evaluations are the same as if we consider the whole definition of the curve. Of course the evaluations are different outside this parametric domain.
Parameters:
Return type:

float

Degree()
  • Computation of value and derivatives
Return type:int
EndPoint()
  • Returns the last point of the curve. Warnings : The last point of the curve is different from the last pole of the curve if the multiplicity of the last knot is lower than Degree.
Return type:float
FirstParameter()
  • Computes the parametric value of the start point of the curve. It is a knot value.
Return type:float
FirstUKnotIndex()
  • For a B-spline curve the first parameter (which gives the start point of the curve) is a knot value but if the multiplicity of the first knot index is lower than Degree + 1 it is not the first knot of the curve. This method computes the index of the knot corresponding to the first parameter.
Return type:int
GetHandle()
IncreaseDegree()
  • Increase the degree to <Degree>. Nothing is done if <Degree> is lower or equal to the current degree.
Parameters:Degree (int) –
Return type:None
IncreaseMultiplicity()
  • Increases the multiplicity of the knot <Index> to <M>. //! If <M> is lower or equal to the current multiplicity nothing is done. If <M> is higher than the degree the degree is used. If <Index> is not in [FirstUKnotIndex, LastUKnotIndex]
Parameters:
Return type:

None

  • Increases the multiplicities of the knots in [I1,I2] to <M>. //! For each knot if <M> is lower or equal to the current multiplicity nothing is done. If <M> is higher than the degree the degree is used. If <I1,I2> are not in [FirstUKnotIndex, LastUKnotIndex]
Parameters:
Return type:

None

IncrementMultiplicity()
  • Increment the multiplicities of the knots in [I1,I2] by <M>. //! If <M> is not positive nithing is done. //! For each knot the resulting multiplicity is limited to the Degree. If <I1,I2> are not in [FirstUKnotIndex, LastUKnotIndex]
Parameters:
Return type:

None

InsertKnot()
  • Inserts a knot value in the sequence of knots. If <U> is an existing knot the multiplicity is increased by <M>. //! If U is not on the parameter range nothing is done. //! If the multiplicity is negative or null nothing is done. The new multiplicity is limited to the degree. //! The tolerance criterion for knots equality is the max of Epsilon(U) and ParametricTolerance.
Parameters:
  • U (float) –
  • M (int) – default value is 1
  • ParametricTolerance (float) – default value is 0.0
  • Add (bool) – default value is Standard_True
Return type:

None

InsertKnots()
  • Inserts a set of knots values in the sequence of knots. //! For each U = Knots(i), M = Mults(i) //! If <U> is an existing knot the multiplicity is increased by <M> if <Add> is True, increased to <M> if <Add> is False. //! If U is not on the parameter range nothing is done. //! If the multiplicity is negative or null nothing is done. The new multiplicity is limited to the degree. //! The tolerance criterion for knots equality is the max of Epsilon(U) and ParametricTolerance.
Parameters:
  • Knots (TColStd_Array1OfReal &) –
  • Mults (TColStd_Array1OfInteger &) –
  • ParametricTolerance (float) – default value is 0.0
  • Add (bool) – default value is Standard_False
Return type:

None

IsCN()
  • Returns the continuity of the curve, the curve is at least C0. Raised if N < 0.
Parameters:N (int) –
Return type:bool
IsClosed()
  • Returns true if the distance between the first point and the last point of the curve is lower or equal to Resolution from package gp. Warnings : The first and the last point can be different from the first pole and the last pole of the curve.
Return type:bool
IsPeriodic()
  • Returns True if the curve is periodic.
Return type:bool
IsRational()
  • Returns True if the weights are not identical. The tolerance criterion is Epsilon of the class Real.
Return type:bool
Knot()
  • Returns the knot of range Index. When there is a knot with a multiplicity greater than 1 the knot is not repeated. The method Multiplicity can be used to get the multiplicity of the Knot. Raised if Index < 1 or Index > NbKnots
Parameters:Index (int) –
Return type:float
KnotDistribution()
  • Returns NonUniform or Uniform or QuasiUniform or PiecewiseBezier. If all the knots differ by a positive constant from the preceding knot the BSpline Curve can be : - Uniform if all the knots are of multiplicity 1, - QuasiUniform if all the knots are of multiplicity 1 except for the first and last knot which are of multiplicity Degree + 1, - PiecewiseBezier if the first and last knots have multiplicity Degree + 1 and if interior knots have multiplicity Degree A piecewise Bezier with only two knots is a BezierCurve. else the curve is non uniform. The tolerance criterion is Epsilon from class Real.
Return type:GeomAbs_BSplKnotDistribution
KnotSequence()
  • Returns the knots sequence. In this sequence the knots with a multiplicity greater than 1 are repeated. Example : K = {k1, k1, k1, k2, k3, k3, k4, k4, k4} //! Raised if the length of K is not equal to NbPoles + Degree + 1
Parameters:K (TColStd_Array1OfReal &) –
Return type:None
Knots()
  • returns the knot values of the B-spline curve; //! Raised if the length of K is not equal to the number of knots.
Parameters:K (TColStd_Array1OfReal &) –
Return type:None
LastParameter()
  • Computes the parametric value of the end point of the curve. It is a knot value.
Return type:float
LastUKnotIndex()
  • For a BSpline curve the last parameter (which gives the end point of the curve) is a knot value but if the multiplicity of the last knot index is lower than Degree + 1 it is not the last knot of the curve. This method computes the index of the knot corresponding to the last parameter.
Return type:int
LocalD0()
Parameters:
  • U (float) –
  • FromK1 (int) –
  • ToK2 (int) –
  • P (float &) –
Return type:

None

LocalD1()
Parameters:
  • U (float) –
  • FromK1 (int) –
  • ToK2 (int) –
  • P (float &) –
  • V1 (float &) –
Return type:

None

LocalD2()
Parameters:
  • U (float) –
  • FromK1 (int) –
  • ToK2 (int) –
  • P (float &) –
  • V1 (float &) –
  • V2 (float &) –
Return type:

None

LocalD3()
Parameters:
  • U (float) –
  • FromK1 (int) –
  • ToK2 (int) –
  • P (float &) –
  • V1 (float &) –
  • V2 (float &) –
  • V3 (float &) –
Return type:

None

LocalDN()
Parameters:
Return type:

float

LocalValue()
Parameters:
Return type:

float

LocateU()
  • Locates the parametric value U in the sequence of knots. If ‘WithKnotRepetition’ is True we consider the knot’s representation with repetition of multiple knot value, otherwise we consider the knot’s representation with no repetition of multiple knot values. Knots (I1) <= U <= Knots (I2) . if I1 = I2 U is a knot value (the tolerance criterion ParametricTolerance is used). . if I1 < 1 => U < Knots (1) - Abs(ParametricTolerance) . if I2 > NbKnots => U > Knots (NbKnots) + Abs(ParametricTolerance)
Parameters:
  • U (float) –
  • ParametricTolerance (float) –
  • I1 (int &) –
  • I2 (int &) –
  • WithKnotRepetition (bool) – default value is Standard_False
Return type:

None

static MaxDegree(*args)
  • Returns the value of the maximum degree of the normalized B-spline basis functions in this package.
Return type:int
MovePointAndTangent()
  • Changes the value of the Law at parameter U to NewValue. and makes its derivative at U be derivative. StartingCondition = -1 means first can move EndingCondition = -1 means last point can move StartingCondition = 0 means the first point cannot move EndingCondition = 0 means the last point cannot move StartingCondition = 1 means the first point and tangent cannot move EndingCondition = 1 means the last point and tangent cannot move and so forth ErrorStatus != 0 means that there are not enought degree of freedom with the constrain to deform the curve accordingly
Parameters:
  • U (float) –
  • NewValue (float) –
  • Derivative (float) –
  • Tolerance (float) –
  • StartingCondition (int) –
  • EndingCondition (int) –
  • ErrorStatus (int &) –
Return type:

None

Multiplicities()
  • Returns the multiplicity of the knots of the curve. //! Raised if the length of M is not equal to NbKnots.
Parameters:M (TColStd_Array1OfInteger &) –
Return type:None
Multiplicity()
  • Returns the multiplicity of the knots of range Index. Raised if Index < 1 or Index > NbKnots
Parameters:Index (int) –
Return type:int
NbKnots()
  • Returns the number of knots. This method returns the number of knot without repetition of multiple knots.
Return type:int
NbPoles()
  • Returns the number of poles
Return type:int
PeriodicNormalization()
  • returns the parameter normalized within the period if the curve is periodic : otherwise does not do anything
Parameters:U (float &) –
Return type:None
Pole()
  • Returns the pole of range Index. Raised if Index < 1 or Index > NbPoles.
Parameters:Index (int) –
Return type:float
Poles()
  • Returns the poles of the B-spline curve; //! Raised if the length of P is not equal to the number of poles.
Parameters:P (TColStd_Array1OfReal &) –
Return type:None
RemoveKnot()
  • Decrement the knots multiplicity to <M>. If M is 0 the knot is removed. The Poles sequence is modified. //! As there are two ways to compute the new poles the average is computed if the distance is lower than the <Tolerance>, else False is returned. //! A low tolerance is used to prevent the modification of the curve. //! A high tolerance is used to ‘smooth’ the curve. //! Raised if Index is not in the range [FirstUKnotIndex, LastUKnotIndex] pole insertion and pole removing this operation is limited to the Uniform or QuasiUniform BSplineCurve. The knot values are modified . If the BSpline is NonUniform or Piecewise Bezier an exception Construction error is raised.
Parameters:
Return type:

bool

Resolution()
  • given Tolerance3D returns UTolerance such that if f(t) is the curve we have | t1 - t0| < Utolerance ===> |f(t1) - f(t0)| < Tolerance3D
Parameters:
  • Tolerance3D (float) –
  • UTolerance (float &) –
Return type:

None

Reverse()
  • Changes the direction of parametrization of <self>. The Knot sequence is modified, the FirstParameter and the LastParameter are not modified. The StartPoint of the initial curve becomes the EndPoint of the reversed curve and the EndPoint of the initial curve becomes the StartPoint of the reversed curve.
Return type:None
ReversedParameter()
  • Returns the parameter on the reversed curve for the point of parameter U on <self>. //! returns UFirst + ULast - U
Parameters:U (float) –
Return type:float
Segment()
  • Segments the curve between U1 and U2. The control points are modified, the first and the last point are not the same. Warnings : Even if <self> is not closed it can become closed after the segmentation for example if U1 or U2 are out of the bounds of the curve <self> or if the curve makes loop. After the segmentation the length of a curve can be null. raises if U2 < U1.
Parameters:
Return type:

None

SetKnot()
  • Changes the knot of range Index. The multiplicity of the knot is not modified. Raised if K >= Knots(Index+1) or K <= Knots(Index-1). Raised if Index < 1 || Index > NbKnots
Parameters:
Return type:

None

  • Changes the knot of range Index with its multiplicity. You can increase the multiplicity of a knot but it is not allowed to decrease the multiplicity of an existing knot. //! Raised if K >= Knots(Index+1) or K <= Knots(Index-1). Raised if M is greater than Degree or lower than the previous multiplicity of knot of range Index. Raised if Index < 1 || Index > NbKnots
Parameters:
Return type:

None

SetKnots()
  • Changes all the knots of the curve The multiplicity of the knots are not modified. //! Raised if there is an index such that K (Index+1) <= K (Index). //! Raised if K.Lower() < 1 or K.Upper() > NbKnots
Parameters:K (TColStd_Array1OfReal &) –
Return type:None
SetNotPeriodic()
  • Makes a non periodic curve. If the curve was non periodic the curve is not modified.
Return type:None
SetOrigin()
  • Set the origin of a periodic curve at Knot(index) KnotVector and poles are modified. Raised if the curve is not periodic Raised if index not in the range [FirstUKnotIndex , LastUKnotIndex]
Parameters:Index (int) –
Return type:None
SetPeriodic()
  • Makes a closed B-spline into a periodic curve. The curve is periodic if the knot sequence is periodic and if the curve is closed (The tolerance criterion is Resolution from gp). The period T is equal to Knot(LastUKnotIndex) - Knot(FirstUKnotIndex). A periodic B-spline can be uniform or not. Raised if the curve is not closed.
Return type:None
SetPole()
  • Substitutes the Pole of range Index with P. //! Raised if Index < 1 || Index > NbPoles
Parameters:
Return type:

None

  • Substitutes the pole and the weight of range Index. If the curve <self> is not rational it can become rational If the curve was rational it can become non rational //! Raised if Index < 1 || Index > NbPoles Raised if Weight <= 0.0
Parameters:
Return type:

None

SetWeight()
  • Changes the weight for the pole of range Index. If the curve was non rational it can become rational. If the curve was rational it can become non rational. //! Raised if Index < 1 || Index > NbPoles Raised if Weight <= 0.0
Parameters:
Return type:

None

StartPoint()
  • Returns the start point of the curve. Warnings : This point is different from the first pole of the curve if the multiplicity of the first knot is lower than Degree.
Return type:float
Value()
Parameters:U (float) –
Return type:float
Weight()
  • Returns the weight of the pole of range Index . Raised if Index < 1 or Index > NbPoles.
Parameters:Index (int) –
Return type:float
Weights()
  • Returns the weights of the B-spline curve; //! Raised if the length of W is not equal to NbPoles.
Parameters:W (TColStd_Array1OfReal &) –
Return type:None
thisown

The membership flag

class Law_BSplineKnotSplitting(*args)

Bases: object

  • Locates the knot values which correspond to the segmentation of the curve into arcs with a continuity equal to ContinuityRange. //! Raised if ContinuityRange is not greater or equal zero.
Parameters:
  • BasisLaw (Handle_Law_BSpline &) –
  • ContinuityRange (int) –
Return type:

None

NbSplits()
  • Returns the number of knots corresponding to the splitting.
Return type:int
SplitValue()
  • Returns the index of the knot corresponding to the splitting of range Index. //! Raised if Index < 1 or Index > NbSplits
Parameters:Index (int) –
Return type:int
Splitting()
  • Returns the indexes of the BSpline curve knots corresponding to the splitting. //! Raised if the length of SplitValues is not equal to NbSPlit.
Parameters:SplitValues (TColStd_Array1OfInteger &) –
Return type:None
thisown

The membership flag

Law_BSpline_MaxDegree(*args)
  • Returns the value of the maximum degree of the normalized B-spline basis functions in this package.
Return type:int
class Law_Composite(*args)

Bases: OCC.Law.Law_Function

  • Construct an empty Law
Return type:None
  • Construct an empty, trimed Law
Parameters:
Return type:

None

ChangeElementaryLaw()
  • Returns the elementary function of the composite used to compute at parameter W.
Parameters:W (float) –
Return type:Handle_Law_Function
ChangeLaws()
Return type:Law_Laws
GetHandle()
IsPeriodic()
Return type:bool
SetPeriodic()
Return type:None
thisown

The membership flag

class Law_Constant(*args)

Bases: OCC.Law.Law_Function

Return type:None
GetHandle()
Set()
  • Set the radius and the range of the constant Law.
Parameters:
Return type:

None

thisown

The membership flag

class Law_Function(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

Bounds()
  • Returns the parametric bounds of the function.
Parameters:
  • PFirst (float &) –
  • PLast (float &) –
Return type:

void

Continuity()
Return type:GeomAbs_Shape
D1()
  • Returns the value F and the first derivative D of the function at the point of parameter X.
Parameters:
  • X (float) –
  • F (float &) –
  • D (float &) –
Return type:

void

D2()
  • Returns the value, first and seconde derivatives at parameter X.
Parameters:
  • X (float) –
  • F (float &) –
  • D (float &) –
  • D2 (float &) –
Return type:

void

GetHandle()
Intervals()
  • Stores in <T> the parameters bounding the intervals of continuity <S>. //! The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()
Parameters:
  • T (TColStd_Array1OfReal &) –
  • S (GeomAbs_Shape) –
Return type:

void

NbIntervals()
  • Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
Parameters:S (GeomAbs_Shape) –
Return type:int
Trim()
  • Returns a law equivalent of <self> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. It is usfule to determines the derivatives in these values <First> and <Last> if the Law is not Cn.
Parameters:
Return type:

Handle_Law_Function

Value()
  • Returns the value of the function at the point of parameter X.
Parameters:X (float) –
Return type:float
thisown

The membership flag

class Law_Interpol(*args)

Bases: OCC.Law.Law_BSpFunc

  • Constructs an empty interpolative evolution law. The function Set is used to define the law.
Return type:None
GetHandle()
Set()
  • Defines this evolution law by interpolating the set of 2D points ParAndRad. The Y coordinate of a point of ParAndRad is the value of the function at the parameter point given by its X coordinate. If Periodic is true, this function is assumed to be periodic. Warning - The X coordinates of points in the table ParAndRad must be given in ascendant order. - If Periodic is true, the first and last Y coordinates of points in the table ParAndRad are assumed to be equal. In addition, with the second syntax, Dd and Df are also assumed to be equal. If this is not the case, Set uses the first value(s) as last value(s).
Parameters:
Return type:

None

  • Defines this evolution law by interpolating the set of 2D points ParAndRad. The Y coordinate of a point of ParAndRad is the value of the function at the parameter point given by its X coordinate. If Periodic is true, this function is assumed to be periodic. In the second syntax, Dd and Df define the values of the first derivative of the function at its first and last points. Warning - The X coordinates of points in the table ParAndRad must be given in ascendant order. - If Periodic is true, the first and last Y coordinates of points in the table ParAndRad are assumed to be equal. In addition, with the second syntax, Dd and Df are also assumed to be equal. If this is not the case, Set uses the first value(s) as last value(s).
Parameters:
Return type:

None

SetInRelative()
Parameters:
  • ParAndRad (TColgp_Array1OfPnt2d) –
  • Ud (float) –
  • Uf (float) –
  • Periodic (bool) – default value is Standard_False
  • ParAndRad
  • Ud
  • Uf
  • Dd (float) –
  • Df (float) –
  • Periodic – default value is Standard_False
Return type:

None

Return type:

None

thisown

The membership flag

class Law_Interpolate(*args)

Bases: object

  • Tolerance is to check if the points are not too close to one an other. It is also used to check if the tangent vector is not too small. There should be at least 2 points. If PeriodicFlag is True then the curve will be periodic be periodic
Parameters:
  • Points (Handle_TColStd_HArray1OfReal &) –
  • PeriodicFlag (bool) –
  • Tolerance (float) –
Return type:

None

  • Tolerance is to check if the points are not too close to one an other. It is also used to check if the tangent vector is not too small. There should be at least 2 points. If PeriodicFlag is True then the curve will be periodic be periodic
Parameters:
  • Points (Handle_TColStd_HArray1OfReal &) –
  • Parameters (Handle_TColStd_HArray1OfReal &) –
  • PeriodicFlag (bool) –
  • Tolerance (float) –
Return type:

None

Curve()
Return type:Handle_Law_BSpline
IsDone()
Return type:bool
Load()
  • loads initial and final tangents if any.
Parameters:
  • InitialTangent (float) –
  • FinalTangent (float) –
Return type:

None

  • loads the tangents. We should have as many tangents as they are points in the array if TangentFlags.Value(i) is Standard_True use the tangent Tangents.Value(i) otherwise the tangent is not constrained.
Parameters:
  • Tangents (TColStd_Array1OfReal &) –
  • TangentFlags (Handle_TColStd_HArray1OfBoolean &) –
Return type:

None

Perform()
  • Makes the interpolation
Return type:None
thisown

The membership flag

class Law_Laws(*args)

Bases: object

Return type:None
Parameters:Other (Law_Laws &) –
Return type:None
Append()
Parameters:
  • I (Handle_Law_Function &) –
  • I
  • theIt (Law_ListIteratorOfLaws &) –
  • Other (Law_Laws &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (Law_Laws &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:Handle_Law_Function
InsertAfter()
Parameters:
  • I (Handle_Law_Function &) –
  • It (Law_ListIteratorOfLaws &) –
  • Other (Law_Laws &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (Handle_Law_Function &) –
  • It (Law_ListIteratorOfLaws &) –
  • Other (Law_Laws &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:Handle_Law_Function
Prepend()
Parameters:
  • I (Handle_Law_Function &) –
  • I
  • theIt (Law_ListIteratorOfLaws &) –
  • Other (Law_Laws &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (Law_ListIteratorOfLaws &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (Law_Laws &) –
Return type:None
thisown

The membership flag

class Law_Linear(*args)

Bases: OCC.Law.Law_Function

  • Constructs an empty linear evolution law.
Return type:None
GetHandle()
Set()
  • Defines this linear evolution law by assigning both: - the bounds Pdeb and Pfin of the parameter, and - the values Valdeb and Valfin of the function at these two parametric bounds.
Parameters:
Return type:

None

thisown

The membership flag

class Law_ListIteratorOfLaws(*args)

Bases: object

Return type:None
Parameters:L (Law_Laws &) –
Return type:None
Initialize()
Parameters:L (Law_Laws &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:Handle_Law_Function
thisown

The membership flag

class Law_ListNodeOfLaws(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • I (Handle_Law_Function &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:Handle_Law_Function
thisown

The membership flag

class Law_S(*args)

Bases: OCC.Law.Law_BSpFunc

  • Constructs an empty ‘S’ evolution law.
Return type:None
GetHandle()
Set()
  • Defines this S evolution law by assigning both: - the bounds Pdeb and Pfin of the parameter, and - the values Valdeb and Valfin of the function at these two parametric bounds. The function is assumed to have the first derivatives equal to 0 at the two parameter points Pdeb and Pfin.
Parameters:
Return type:

None

  • Defines this S evolution law by assigning - the bounds Pdeb and Pfin of the parameter, - the values Valdeb and Valfin of the function at these two parametric bounds, and - the values Ddeb and Dfin of the first derivative of the function at these two parametric bounds.
Parameters:
Return type:

None

thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
class law

Bases: object

static MixBnd(*args)
  • This algorithm searches the knot values corresponding to the splitting of a given B-spline law into several arcs with the same continuity. The continuity order is given at the construction time. Builds a 1d bspline that is near from Lin with null derivatives at the extremities.
Parameters:Lin (Handle_Law_Linear &) –
Return type:Handle_Law_BSpFunc
  • Builds the poles of the 1d bspline that is near from Lin with null derivatives at the extremities.
Parameters:
  • Degree (int) –
  • Knots (TColStd_Array1OfReal &) –
  • Mults (TColStd_Array1OfInteger &) –
  • Lin (Handle_Law_Linear &) –
Return type:

Handle_TColStd_HArray1OfReal

static MixTgt(*args)
  • Builds the poles of the 1d bspline that is null on the rigth side of Knots(Index) (on the left if NulOnTheRight is false) and that is like a t*(1-t)(1-t) curve on the left side of Knots(Index) (on the rigth if NulOnTheRight is false). The result curve is C1 with a derivative equal to 1. at first parameter (-1 at last parameter if NulOnTheRight is false). Warning: Mults(Index) must greater or equal to degree-1.
Parameters:
  • Degree (int) –
  • Knots (TColStd_Array1OfReal &) –
  • Mults (TColStd_Array1OfInteger &) –
  • NulOnTheRight (bool) –
  • Index (int) –
Return type:

Handle_TColStd_HArray1OfReal

static Reparametrize(*args)
  • Computes a 1 d curve to reparametrize a curve. Its an interpolation of NbPoints points calculated at quasi constant abscissa.
Parameters:
Return type:

Handle_Law_BSpline

static Scale(*args)
  • Computes a 1 d curve to scale a field of tangency. Value is 1. for t = (First+Last)/2 . If HasFirst value for t = First is VFirst (null derivative). If HasLast value for t = Last is VLast (null derivative). //! 1. _ _/ _ __/ __ / VFirst ____/ VLast ____ First Last
Parameters:
Return type:

Handle_Law_BSpline

static ScaleCub(*args)
Parameters:
Return type:

Handle_Law_BSpline

thisown

The membership flag

law_MixBnd(*args)
  • This algorithm searches the knot values corresponding to the splitting of a given B-spline law into several arcs with the same continuity. The continuity order is given at the construction time. Builds a 1d bspline that is near from Lin with null derivatives at the extremities.
Parameters:Lin (Handle_Law_Linear &) –
Return type:Handle_Law_BSpFunc
  • Builds the poles of the 1d bspline that is near from Lin with null derivatives at the extremities.
Parameters:
  • Degree (int) –
  • Knots (TColStd_Array1OfReal &) –
  • Mults (TColStd_Array1OfInteger &) –
  • Lin (Handle_Law_Linear &) –
Return type:

Handle_TColStd_HArray1OfReal

law_MixTgt(*args)
  • Builds the poles of the 1d bspline that is null on the rigth side of Knots(Index) (on the left if NulOnTheRight is false) and that is like a t*(1-t)(1-t) curve on the left side of Knots(Index) (on the rigth if NulOnTheRight is false). The result curve is C1 with a derivative equal to 1. at first parameter (-1 at last parameter if NulOnTheRight is false). Warning: Mults(Index) must greater or equal to degree-1.
Parameters:
  • Degree (int) –
  • Knots (TColStd_Array1OfReal &) –
  • Mults (TColStd_Array1OfInteger &) –
  • NulOnTheRight (bool) –
  • Index (int) –
Return type:

Handle_TColStd_HArray1OfReal

law_Reparametrize(*args)
  • Computes a 1 d curve to reparametrize a curve. Its an interpolation of NbPoints points calculated at quasi constant abscissa.
Parameters:
Return type:

Handle_Law_BSpline

law_Scale(*args)
  • Computes a 1 d curve to scale a field of tangency. Value is 1. for t = (First+Last)/2 . If HasFirst value for t = First is VFirst (null derivative). If HasLast value for t = Last is VLast (null derivative). //! 1. _ _/ _ __/ __ / VFirst ____/ VLast ____ First Last
Parameters:
Return type:

Handle_Law_BSpline

law_ScaleCub(*args)
Parameters:
Return type:

Handle_Law_BSpline

register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases