OCC.Geom module¶

class
Geom_Axis1Placement
(*args)¶ Bases:
OCC.Geom.Geom_AxisPlacement
 Returns a transient copy of A1.
Parameters: A1 (gp_Ax1) – Return type: None  P is the origin of the axis placement and V is the direction of the axis placement.
Parameters: Return type: 
GetHandle
()¶

Reversed
()¶  Returns a copy of <self> reversed.
Return type: Handle_Geom_Axis1Placement

thisown
¶ The membership flag

class
Geom_Axis2Placement
(*args)¶ Bases:
OCC.Geom.Geom_AxisPlacement
 Returns a transient copy of A2.
Parameters: A2 (gp_Ax2) – Return type: None  P is the origin of the axis placement, N is the main direction of the axis placement and Vx is the ‘XDirection’. If the two directions N and Vx are not orthogonal the ‘XDirection’ is computed as follow : XDirection = N ^ (Vx ^ N). Raised if N and Vx are parallel.
Parameters: Return type: 
GetHandle
()¶

SetAx2
()¶  Assigns the origin and the three unit vectors of A2 to this coordinate system.
Parameters: A2 (gp_Ax2) – Return type: None

SetXDirection
()¶  Changes the ‘XDirection’ of the axis placement, Vx is the new ‘XDirection’. If Vx is not normal to the main direction then ‘XDirection’ is computed as follow : XDirection = Direction ^ ( Vx ^ Direction). The main direction is not modified. Raised if Vx and ‘Direction’ are parallel.
Parameters: Vx (gp_Dir) – Return type: None

SetYDirection
()¶  Changes the ‘YDirection’ of the axis placement, Vy is the new ‘YDirection’. If Vy is not normal to the main direction then ‘YDirection’ is computed as follow : YDirection = Direction ^ ( Vy ^ Direction). The main direction is not modified. The ‘XDirection’ is modified. Raised if Vy and the main direction are parallel.
Parameters: Vy (gp_Dir) – Return type: None

thisown
¶ The membership flag

class
Geom_AxisPlacement
(*args, **kwargs)¶ Bases:
OCC.Geom.Geom_Geometry

Angle
()¶  Computes the angular value, in radians, between the ‘main Direction’ of this positioning system and that of positioning system Other. The result is a value between 0 and Pi.
Parameters: Other (Handle_Geom_AxisPlacement &) – Return type: float

Axis
()¶  Returns the main axis of the axis placement. For an ‘Axis2placement’ it is the main axis (Location, Direction ). For an ‘Axis1Placement’ this method returns a copy of <self>.
Return type: gp_Ax1

GetHandle
()¶

SetAxis
()¶  Assigns A1 as the ‘main Axis’ of this positioning system. This modifies  its origin, and  its ‘main Direction’. If this positioning system is a Geom_Axis2Placement, then its ‘X Direction’ and ‘Y Direction’ are recomputed. Exceptions For a Geom_Axis2Placement: Standard_ConstructionError if A1 and the previous ‘X Direction’ of the coordinate system are parallel.
Parameters: A1 (gp_Ax1) – Return type: None

SetDirection
()¶  Changes the direction of the axis placement. If <self> is an axis placement two axis the main ‘Direction’ is modified and the ‘XDirection’ and ‘YDirection’ are recomputed. Raises ConstructionError only for an axis placement two axis if V and the previous ‘XDirection’ are parallel because it is not possible to calculate the new ‘XDirection’ and the new ‘YDirection’.
Parameters: V (gp_Dir) – Return type: void

SetLocation
()¶  Assigns the point P as the origin of this positioning system.
Parameters: P (gp_Pnt) – Return type: None

thisown
¶ The membership flag


class
Geom_BSplineCurve
(*args)¶ Bases:
OCC.Geom.Geom_BoundedCurve
 Creates a nonrational B_spline curve on the basis <Knots, Multiplicities> of degree <Degree>.
Parameters:  Poles (TColgp_Array1OfPnt) –
 Knots (TColStd_Array1OfReal &) –
 Multiplicities (TColStd_Array1OfInteger &) –
 Degree (int) –
 Periodic (bool) – default value is Standard_False
Return type:  Creates a rational B_spline curve on the basis <Knots, Multiplicities> of degree <Degree>. Raises ConstructionError subject to the following conditions 0 < Degree <= MaxDegree. //! Weights.Length() == Poles.Length() //! Knots.Length() == Mults.Length() >= 2 //! Knots(i) < Knots(i+1) (Knots are increasing) //! 1 <= Mults(i) <= Degree //! On a non periodic curve the first and last multiplicities may be Degree+1 (this is even recommanded if you want the curve to start and finish on the first and last pole). //! On a periodic curve the first and the last multicities must be the same. //! on nonperiodic curves //! Poles.Length() == Sum(Mults(i))  Degree  1 >= 2 //! on periodic curves //! Poles.Length() == Sum(Mults(i)) except the first or last
Parameters:  Poles (TColgp_Array1OfPnt) –
 Weights (TColStd_Array1OfReal &) –
 Knots (TColStd_Array1OfReal &) –
 Multiplicities (TColStd_Array1OfInteger &) –
 Degree (int) –
 Periodic (bool) – default value is Standard_False
 CheckRational (bool) – default value is Standard_True
Return type: 
Degree
()¶  Returns the degree of this BSpline curve. The degree of a Geom_BSplineCurve curve cannot be greater than Geom_BSplineCurve::MaxDegree(). Computation of value and derivatives
Return type: int

FirstUKnotIndex
()¶  Returns the index in the knot array of the knot corresponding to the first or last parameter of this BSpline curve. For a BSpline curve, the first (or last) parameter (which gives the start (or end) point of the curve) is a knot value. However, if the multiplicity of the first (or last) knot is less than Degree + 1, where Degree is the degree of the curve, it is not the first (or last) knot of the curve.
Return type: int

GetHandle
()¶

IncreaseDegree
()¶  Increases the degree of this BSpline curve to Degree. As a result, the poles, weights and multiplicities tables are modified; the knots table is not changed. Nothing is done if Degree is less than or equal to the current degree. Exceptions Standard_ConstructionError if Degree is greater than Geom_BSplineCurve::MaxDegree().
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:  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:

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:

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: Return type:

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: Return type:

IsEqual
()¶  Comapare two Bspline curve on identity;
Parameters:  theOther (Handle_Geom_BSplineCurve &) –
 thePreci (float) –
Return type:

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 K, the knots sequence of this BSpline curve. In this sequence, knots with a multiplicity greater than 1 are repeated. In the case of a nonperiodic curve the length of the sequence must be equal to the sum of the NbKnots multiplicities of the knots of the curve (where NbKnots is the number of knots of this BSpline curve). This sum is also equal to : NbPoles + Degree + 1 where NbPoles is the number of poles and Degree the degree of this BSpline curve. In the case of a periodic curve, if there are k periodic knots, the period is Knot(k+1)  Knot(1). The initial sequence is built by writing knots 1 to k+1, which are repeated according to their corresponding multiplicities. If Degree is the degree of the curve, the degree of continuity of the curve at the knot of index 1 (or k+1) is equal to c = Degree + 1  Mult(1). c knots are then inserted at the beginning and end of the initial sequence:  the c values of knots preceding the first item Knot(k+1) in the initial sequence are inserted at the beginning; the period is subtracted from these c values;  the c values of knots following the last item Knot(1) in the initial sequence are inserted at the end; the period is added to these c values. The length of the sequence must therefore be equal to: NbPoles + 2*Degree  Mult(1) + 2. Example For a nonperiodic BSpline curve of degree 2 where:  the array of knots is: { k1 k2 k3 k4 },  with associated multiplicities: { 3 1 2 3 }, the knot sequence is: K = { k1 k1 k1 k2 k3 k3 k4 k4 k4 } For a periodic BSpline curve of degree 4 , which is ‘C1’ continuous at the first knot, and where :  the periodic knots are: { k1 k2 k3 (k4) } (3 periodic knots: the points of parameter k1 and k4 are identical, the period is p = k4  k1),  with associated multiplicities: { 3 1 2 (3) }, the degree of continuity at knots k1 and k4 is: Degree + 1  Mult(i) = 2. 2 supplementary knots are added at the beginning and end of the sequence:  at the beginning: the 2 knots preceding k4 minus the period; in this example, this is k3  p both times;  at the end: the 2 knots following k1 plus the period; in this example, this is k2 + p and k3 + p. The knot sequence is therefore: K = { k3p k3p k1 k1 k1 k2 k3 k3 k4 k4 k4 k2+p k3+p } Exceptions Standard_DimensionError if the array K is not of the appropriate length.Returns the knots sequence.
Parameters: K (TColStd_Array1OfReal &) – Return type: None

Knots
()¶  returns the knot values of the Bspline curve; Warning A knot with a multiplicity greater than 1 is not repeated in the knot table. The Multiplicity function can be used to obtain the multiplicity of each knot. //! Raised if the length of K is not equal to the number of knots.
Parameters: K (TColStd_Array1OfReal &) – Return type: None

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
()¶  Raised if FromK1 = ToK2. //! Raised if FromK1 and ToK2 are not in the range [FirstUKnotIndex, LastUKnotIndex].
Parameters: Return type:

LocalD1
()¶  Raised if the local continuity of the curve is not C1 between the knot K1 and the knot K2. Raised if FromK1 = ToK2. //! Raised if FromK1 and ToK2 are not in the range [FirstUKnotIndex, LastUKnotIndex].
Parameters: Return type:

LocalD2
()¶  Raised if the local continuity of the curve is not C2 between the knot K1 and the knot K2. Raised if FromK1 = ToK2. //! Raised if FromK1 and ToK2 are not in the range [FirstUKnotIndex, LastUKnotIndex].
Parameters: Return type:

LocalD3
()¶  Raised if the local continuity of the curve is not C3 between the knot K1 and the knot K2. Raised if FromK1 = ToK2. //! Raised if FromK1 and ToK2 are not in the range [FirstUKnotIndex, LastUKnotIndex].
Parameters: Return type:

LocalDN
()¶  Raised if the local continuity of the curve is not CN between the knot K1 and the knot K2. Raised if FromK1 = ToK2. Raised if N < 1. //! Raises if FromK1 and ToK2 are not in the range [FirstUKnotIndex, LastUKnotIndex].
Parameters: Return type:

LocalValue
()¶  Raised if FromK1 = ToK2. //! Raised if FromK1 and ToK2 are not in the range [FirstUKnotIndex, LastUKnotIndex].
Parameters: Return type:

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: Return type:

static
MaxDegree
(*args)¶  Returns the value of the maximum degree of the normalized Bspline basis functions in this package.
Return type: int

MovePoint
()¶  Moves the point of parameter U of this BSpline curve to P. Index1 and Index2 are the indexes in the table of poles of this BSpline curve of the first and last poles designated to be moved. FirstModifiedPole and LastModifiedPole are the indexes of the first and last poles which are effectively modified. In the event of incompatibility between Index1, Index2 and the value U:  no change is made to this BSpline curve, and  the FirstModifiedPole and LastModifiedPole are returned null. Exceptions Standard_OutOfRange if:  Index1 is greater than or equal to Index2, or  Index1 or Index2 is less than 1 or greater than the number of poles of this BSpline curve.
Parameters: Return type:

MovePointAndTangent
()¶  Move a point with parameter U to P. and makes it tangent at U be Tangent. 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: Return type:

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

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: gp_Pnt

Poles
()¶  Returns the poles of the Bspline curve; //! Raised if the length of P is not equal to the number of poles.
Parameters: P (TColgp_Array1OfPnt) – Return type: None

RemoveKnot
()¶  Reduces the multiplicity of the knot of index Index to M. If M is equal to 0, the knot is removed. With a modification of this type, the array of poles is also modified. Two different algorithms are systematically used to compute the new poles of the curve. If, for each pole, the distance between the pole calculated using the first algorithm and the same pole calculated using the second algorithm, is less than Tolerance, this ensures that the curve is not modified by more than Tolerance. Under these conditions, true is returned; otherwise, false is returned. A low tolerance is used to prevent modification of the curve. A high tolerance is used to ‘smooth’ the curve. Exceptions Standard_OutOfRange if Index is outside the bounds of the knots table. 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:

Resolution
()¶  Computes for this BSpline curve the parametric tolerance UTolerance for a given 3D tolerance Tolerance3D. If f(t) is the equation of this BSpline curve, UTolerance ensures that:  t1  t0 < Utolerance ===> f(t1)  f(t0) < Tolerance3D
Parameters:  Tolerance3D (float) –
 UTolerance (float &) –
Return type:

Segment
()¶  Modifies this BSpline curve by segmenting it between U1 and U2. Either of these values can be outside the bounds of the curve, but U2 must be greater than U1. All data structure tables of this BSpline curve are modified, but the knots located between U1 and U2 are retained. The degree of the curve is not modified. 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:

SetKnot
()¶  Modifies this BSpline curve by assigning the value K to the knot of index Index in the knots table. This is a relatively local modification because K must be such that: Knots(Index  1) < K < Knots(Index + 1) The second syntax allows you also to increase the multiplicity of the knot to M (but it is not possible to decrease the multiplicity of the knot with this function). Standard_ConstructionError if:  K is not such that: Knots(Index  1) < K < Knots(Index + 1)  M is greater than the degree of this BSpline curve or lower than the previous multiplicity of knot of index Index in the knots table. Standard_OutOfRange if Index is outside the bounds of the knots table.
Parameters: Return type:  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(Index1). 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:

SetKnots
()¶  Modifies this BSpline curve by assigning the array K to its knots table. The multiplicity of the knots is not modified. Exceptions Standard_ConstructionError if the values in the array K are not in ascending order. Standard_OutOfRange if the bounds of the array K are not respectively 1 and the number of knots of this BSpline curve.
Parameters: K (TColStd_Array1OfReal &) – Return type: None

SetNotPeriodic
()¶  Changes this BSpline curve into a nonperiodic curve. If this curve is already nonperiodic, it is not modified. Note: the poles and knots tables are modified. Warning If this curve is periodic, as the multiplicity of the first and last knots is not modified, and is not equal to Degree + 1, where Degree is the degree of this BSpline curve, the start and end points of the curve are not its first and last poles.
Return type: None

SetOrigin
()¶  Assigns the knot of index Index in the knots table as the origin of this periodic BSpline curve. As a consequence, the knots and poles tables are modified. Exceptions Standard_NoSuchObject if this curve is not periodic. Standard_DomainError if Index is outside the bounds of the knots table.
Parameters: Index (int) – Return type: None  Set the origin of a periodic curve at Knot U. If U is not a knot of the BSpline a new knot is inseted. KnotVector and poles are modified. Raised if the curve is not periodic
Parameters: Return type:

SetPeriodic
()¶  Changes this BSpline curve into a periodic curve. To become periodic, the curve must first be closed. Next, the knot sequence must be periodic. For this, FirstUKnotIndex and LastUKnotIndex are used to compute I1 and I2, the indexes in the knots array of the knots corresponding to the first and last parameters of this BSpline curve. The period is therefore: Knots(I2)  Knots(I1). Consequently, the knots and poles tables are modified. Exceptions Standard_ConstructionError if this BSpline curve is not closed.
Return type: None

SetPole
()¶  Modifies this BSpline curve by assigning P to the pole of index Index in the poles table. Exceptions Standard_OutOfRange if Index is outside the bounds of the poles table. Standard_ConstructionError if Weight is negative or null.
Parameters: Return type:  Modifies this BSpline curve by assigning P to the pole of index Index in the poles table. This syntax also allows you to modify the weight of the modified pole, which becomes Weight. In this case, if this BSpline curve is nonrational, it can become rational and vice versa. Exceptions Standard_OutOfRange if Index is outside the bounds of the poles table. Standard_ConstructionError if Weight is negative or null.
Parameters: Return type:

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:

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 Bspline curve; //! Raised if the length of W is not equal to NbPoles.
Parameters: W (TColStd_Array1OfReal &) – Return type: None

thisown
¶ The membership flag

Geom_BSplineCurve_MaxDegree
(*args)¶  Returns the value of the maximum degree of the normalized Bspline basis functions in this package.
Return type: int

class
Geom_BSplineSurface
(*args)¶ Bases:
OCC.Geom.Geom_BoundedSurface
 Creates a nonrational bspline surface (weights default value is 1.). The following conditions must be verified. 0 < UDegree <= MaxDegree. UKnots.Length() == UMults.Length() >= 2 UKnots(i) < UKnots(i+1) (Knots are increasing) 1 <= UMults(i) <= UDegree On a non uperiodic surface the first and last umultiplicities may be UDegree+1 (this is even recommanded if you want the curve to start and finish on the first and last pole). On a uperiodic surface the first and the last umultiplicities must be the same. on nonuperiodic surfaces Poles.ColLength() == Sum(UMults(i))  UDegree  1 >= 2 on uperiodic surfaces Poles.ColLength() == Sum(UMults(i)) except the first or last The previous conditions for U holds also for V, with the RowLength of the poles.
Parameters:  Poles (TColgp_Array2OfPnt) –
 UKnots (TColStd_Array1OfReal &) –
 VKnots (TColStd_Array1OfReal &) –
 UMults (TColStd_Array1OfInteger &) –
 VMults (TColStd_Array1OfInteger &) –
 UDegree (int) –
 VDegree (int) –
 UPeriodic (bool) – default value is Standard_False
 VPeriodic (bool) – default value is Standard_False
Return type:  Creates a nonrational bspline surface (weights default value is 1.). //! The following conditions must be verified. 0 < UDegree <= MaxDegree. //! UKnots.Length() == UMults.Length() >= 2 //! UKnots(i) < UKnots(i+1) (Knots are increasing) 1 <= UMults(i) <= UDegree //! On a non uperiodic surface the first and last umultiplicities may be UDegree+1 (this is even recommanded if you want the curve to start and finish on the first and last pole). //! On a uperiodic surface the first and the last umultiplicities must be the same. //! on nonuperiodic surfaces //! Poles.ColLength() == Sum(UMults(i))  UDegree  1 >= 2 //! on uperiodic surfaces //! Poles.ColLength() == Sum(UMults(i)) except the first or last //! The previous conditions for U holds also for V, with the RowLength of the poles.
Parameters:  Poles (TColgp_Array2OfPnt) –
 Weights (TColStd_Array2OfReal &) –
 UKnots (TColStd_Array1OfReal &) –
 VKnots (TColStd_Array1OfReal &) –
 UMults (TColStd_Array1OfInteger &) –
 VMults (TColStd_Array1OfInteger &) –
 UDegree (int) –
 VDegree (int) –
 UPeriodic (bool) – default value is Standard_False
 VPeriodic (bool) – default value is Standard_False
Return type: 
CheckAndSegment
()¶  Segments the surface between U1 and U2 in the UDirection. between V1 and V2 in the VDirection. //! same as Segment but do nothing if U1 and U2 (resp. V1 and V2) are equal to the bounds in U (resp. in V) of <self>. For example, if <self> is periodic in V, it will be always periodic in V after the segmentation if the bounds in V are unchanged //! 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 surface <self> or if the surface makes loop. raises if U2 < U1 or V2 < V1
Parameters: Return type:

ExchangeUV
()¶  Exchanges the u and v parametric directions on this BSpline surface. As a consequence:  the poles and weights tables are transposed,  the knots and multiplicities tables are exchanged,  degrees of continuity, and rational, periodic and uniform characteristics are exchanged, and  the orientation of the surface is inverted.
Return type: None

FirstUKnotIndex
()¶  Computes the Index of the UKnots which gives the first parametric value of the surface in the U direction. The UIso curve corresponding to this value is a boundary curve of the surface.
Return type: int

FirstVKnotIndex
()¶  Computes the Index of the VKnots which gives the first parametric value of the surface in the V direction. The VIso curve corresponding to this knot is a boundary curve of the surface.
Return type: int

GetHandle
()¶

IncreaseDegree
()¶  Increases the degrees of this BSpline surface to UDegree and VDegree in the u and v parametric directions respectively. As a result, the tables of poles, weights and multiplicities are modified. The tables of knots is not changed. Note: Nothing is done if the given degree is less than or equal to the current degree in the corresponding parametric direction. Exceptions Standard_ConstructionError if UDegree or VDegree is greater than Geom_BSplineSurface::MaxDegree().
Parameters: Return type:

IncreaseUMultiplicity
()¶  Increases the multiplicity of the knot of range UIndex in the UKnots sequence. M is the new multiplicity. M must be greater than the previous multiplicity and lower or equal to the degree of the surface in the U parametric direction. Raised if M is not in the range [1, UDegree] //! Raised if UIndex is not in the range [FirstUKnotIndex, LastUKnotIndex] given by the methods with the same name.
Parameters: Return type:  Increases until order M the multiplicity of the set of knots FromI1,...., ToI2 in the U direction. This method can be used to make a B_spline surface into a PiecewiseBezier B_spline surface. If <self> was uniform, it can become non uniform. //! Raised if FromI1 or ToI2 is out of the range [FirstUKnotIndex, LastUKnotIndex]. //! M should be greater than the previous multiplicity of the all the knots FromI1,..., ToI2 and lower or equal to the Degree of the surface in the U parametric direction.
Parameters: Return type:

IncreaseVMultiplicity
()¶  Increases the multiplicity of a knot in the V direction. M is the new multiplicity. //! M should be greater than the previous multiplicity and lower than the degree of the surface in the V parametric direction. //! Raised if VIndex is not in the range [FirstVKnotIndex, LastVKnotIndex] given by the methods with the same name.
Parameters: Return type:  Increases until order M the multiplicity of the set of knots FromI1,...., ToI2 in the V direction. This method can be used to make a BSplineSurface into a PiecewiseBezier B_spline surface. If <self> was uniform, it can become nonuniform. //! Raised if FromI1 or ToI2 is out of the range [FirstVKnotIndex, LastVKnotIndex] given by the methods with the same name. //! M should be greater than the previous multiplicity of the all the knots FromI1,..., ToI2 and lower or equal to the Degree of the surface in the V parametric direction.
Parameters: Return type:

IncrementUMultiplicity
()¶  Increments the multiplicity of the consecutives uknots FromI1..ToI2 by step. The multiplicity of each knot FromI1,.....,ToI2 must be lower or equal to the UDegree of the B_spline. //! Raised if FromI1 or ToI2 is not in the range [FirstUKnotIndex, LastUKnotIndex] //! Raised if one knot has a multiplicity greater than UDegree.
Parameters: Return type:

IncrementVMultiplicity
()¶  Increments the multiplicity of the consecutives vknots FromI1..ToI2 by step. The multiplicity of each knot FromI1,.....,ToI2 must be lower or equal to the VDegree of the B_spline. //! Raised if FromI1 or ToI2 is not in the range [FirstVKnotIndex, LastVKnotIndex] //! Raised if one knot has a multiplicity greater than VDegree.
Parameters: Return type:

InsertUKnot
()¶  Inserts a knot value in the sequence of UKnots. If U is a knot value this method increases the multiplicity of the knot if the previous multiplicity was lower than M else it does nothing. The tolerance criterion is ParametricTolerance. ParametricTolerance should be greater or equal than Resolution from package gp. //! Raised if U is out of the bounds [U1, U2] given by the methods Bounds, the criterion ParametricTolerance is used. Raised if M is not in the range [1, UDegree].
Parameters: Return type:

InsertUKnots
()¶ Parameters: Return type:

InsertVKnot
()¶  Inserts a knot value in the sequence of VKnots. If V is a knot value this method increases the multiplicity of the knot if the previous multiplicity was lower than M otherwise it does nothing. The tolerance criterion is ParametricTolerance. ParametricTolerance should be greater or equal than Resolution from package gp. //! raises if V is out of the Bounds [V1, V2] given by the methods Bounds, the criterion ParametricTolerance is used. raises if M is not in the range [1, VDegree].
Parameters: Return type:

InsertVKnots
()¶  Inserts into the knots table for the corresponding parametric direction of this BSpline surface:  the value U, or V, with the multiplicity M (defaulted to 1), or  the values of the array Knots, with their respective multiplicities, Mults. If the knot value to insert already exists in the table, its multiplicity is:  increased by M, if Add is true (the default), or  increased to M, if Add is false. The tolerance criterion used to check the equality of the knots is the larger of the values ParametricTolerance and Standard_Real::Epsilon(val), where val is the knot value to be inserted. Warning  If a given multiplicity coefficient is null, or negative, nothing is done.  The new multiplicity of a knot is limited to the degree of this BSpline surface in the corresponding parametric direction. Exceptions Standard_ConstructionError if a knot value to insert is outside the bounds of this BSpline surface in the specified parametric direction. The comparison uses the precision criterion ParametricTolerance.
Parameters: Return type:

IsCacheValid
()¶  Tells whether the Cache is valid for the given parameter Warnings : the parameter must be normalized within the period if the curve is periodic. Otherwise the answer will be false
Parameters: Return type:

IsURational
()¶  Returns False if for each row of weights all the weights are identical. The tolerance criterion is resolution from package gp. Example : 1.0, 1.0, 1.0 if Weights = 0.5, 0.5, 0.5 returns False 2.0, 2.0, 2.0
Return type: bool

IsVRational
()¶  Returns False if for each column of weights all the weights are identical. The tolerance criterion is resolution from package gp. Examples : 1.0, 2.0, 0.5 if Weights = 1.0, 2.0, 0.5 returns False 1.0, 2.0, 0.5
Return type: bool

LastUKnotIndex
()¶  Computes the Index of the UKnots which gives the last parametric value of the surface in the U direction. The UIso curve corresponding to this knot is a boundary curve of the surface.
Return type: int

LastVKnotIndex
()¶  Computes the Index of the VKnots which gives the last parametric value of the surface in the V direction. The VIso curve corresponding to this knot is a boundary curve of the surface.
Return type: int

LocalD0
()¶  Raised if FromUK1 = ToUK2 or FromVK1 = ToVK2. //! Raised if FromUK1, ToUK2 are not in the range [FirstUKnotIndex, LastUKnotIndex] or if FromVK1, ToVK2 are not in the range [FirstVKnotIndex, LastVKnotIndex]
Parameters: Return type:

LocalD1
()¶  Raised if the local continuity of the surface is not C1 between the knots FromUK1, ToUK2 and FromVK1, ToVK2. Raised if FromUK1 = ToUK2 or FromVK1 = ToVK2. //! Raised if FromUK1, ToUK2 are not in the range [FirstUKnotIndex, LastUKnotIndex] or if FromVK1, ToVK2 are not in the range [FirstVKnotIndex, LastVKnotIndex]
Parameters: Return type:

LocalD2
()¶  Raised if the local continuity of the surface is not C2 between the knots FromUK1, ToUK2 and FromVK1, ToVK2. Raised if FromUK1 = ToUK2 or FromVK1 = ToVK2. //! Raised if FromUK1, ToUK2 are not in the range [FirstUKnotIndex, LastUKnotIndex] or if FromVK1, ToVK2 are not in the range [FirstVKnotIndex, LastVKnotIndex]
Parameters: Return type:

LocalD3
()¶  Raised if the local continuity of the surface is not C3 between the knots FromUK1, ToUK2 and FromVK1, ToVK2. Raised if FromUK1 = ToUK2 or FromVK1 = ToVK2. //! Raised if FromUK1, ToUK2 are not in the range [FirstUKnotIndex, LastUKnotIndex] or if FromVK1, ToVK2 are not in the range [FirstVKnotIndex, LastVKnotIndex]
Parameters: Return type:

LocalDN
()¶  Raised if the local continuity of the surface is not CNu between the knots FromUK1, ToUK2 and CNv between the knots FromVK1, ToVK2. Raised if FromUK1 = ToUK2 or FromVK1 = ToVK2. //! Raised if FromUK1, ToUK2 are not in the range [FirstUKnotIndex, LastUKnotIndex] or if FromVK1, ToVK2 are not in the range [FirstVKnotIndex, LastVKnotIndex]
Parameters: Return type:

LocalValue
()¶  Computes the point of parameter U, V on the BSpline surface patch defines between the knots UK1 UK2, VK1, VK2. U can be out of the bounds [Knot UK1, Knot UK2] and V can be outof the bounds [Knot VK1, Knot VK2] but for the computation we only use the definition of the surface between these knot values. Raises if FromUK1 = ToUK2 or FromVK1 = ToVK2. //! Raises if FromUK1, ToUK2 are not in the range [FirstUKnotIndex, LastUKnotIndex] or if FromVK1, ToVK2 are not in the range [FirstVKnotIndex, LastVKnotIndex]
Parameters: Return type:

LocateU
()¶  Locates the parametric value U in the sequence of UKnots. 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. UKnots (I1) <= U <= UKnots (I2) . if I1 = I2 U is a knot value (the tolerance criterion ParametricTolerance is used). . if I1 < 1 => U < UKnots(1)  Abs(ParametricTolerance) . if I2 > NbUKnots => U > UKnots(NbUKnots)+Abs(ParametricTolerance)
Parameters: Return type:

LocateV
()¶  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. VKnots (I1) <= V <= VKnots (I2) . if I1 = I2 V is a knot value (the tolerance criterion ParametricTolerance is used). . if I1 < 1 => V < VKnots(1)  Abs(ParametricTolerance) . if I2 > NbVKnots => V > VKnots(NbVKnots)+Abs(ParametricTolerance) poles insertion and removing The following methods are available only if the surface is Uniform or QuasiUniform in the considered direction The knot repartition is modified.
Parameters: Return type:

static
MaxDegree
(*args)¶  Returns the value of the maximum degree of the normalized Bspline basis functions in the u and v directions.
Return type: int

MovePoint
()¶  Move a point with parameter U and V to P. given u,v as parameters) to reach a new position UIndex1, UIndex2, VIndex1, VIndex2: indicates the poles which can be moved if Problem in BSplineBasis calculation, no change for the curve and UFirstIndex, VLastIndex = 0 VFirstIndex, VLastIndex = 0 //! Raised if UIndex1 < UIndex2 or VIndex1 < VIndex2 or UIndex1 < 1  UIndex1 > NbUPoles or UIndex2 < 1  UIndex2 > NbUPoles VIndex1 < 1  VIndex1 > NbVPoles or VIndex2 < 1  VIndex2 > NbVPoles characteristics of the surface
Parameters: Return type:

PeriodicNormalization
()¶  returns the parameter normalized within the period if the surface is periodic : otherwise does not do anything
Parameters:  U (float &) –
 V (float &) –
Return type:

Pole
()¶  Returns the pole of range (UIndex, VIndex). //! Raised if UIndex < 1 or UIndex > NbUPoles or VIndex < 1 or VIndex > NbVPoles.
Parameters: Return type:

Poles
()¶  Returns the poles of the Bspline surface. //! Raised if the length of P in the U and V direction is not equal to NbUpoles and NbVPoles.
Parameters: P (TColgp_Array2OfPnt) – Return type: None

RemoveVKnot
()¶  Reduces to M the multiplicity of the knot of index Index in the given parametric direction. If M is 0, the knot is removed. With a modification of this type, the table of poles is also modified. Two different algorithms are used systematically to compute the new poles of the surface. For each pole, the distance between the pole calculated using the first algorithm and the same pole calculated using the second algorithm, is checked. If this distance is less than Tolerance it ensures that the surface is not modified by more than Tolerance. Under these conditions, the function returns true; otherwise, it returns false. A low tolerance prevents modification of the surface. A high tolerance ‘smoothes’ the surface. Exceptions Standard_OutOfRange if Index is outside the bounds of the knots table of this BSpline surface.
Parameters: Return type:

Resolution
()¶  Computes two tolerance values for this BSpline surface, based on the given tolerance in 3D space Tolerance3D. The tolerances computed are:  UTolerance in the u parametric direction, and  VTolerance in the v parametric direction. If f(u,v) is the equation of this BSpline surface, UTolerance and VTolerance guarantee that :  u1  u0  < UTolerance and  v1  v0  < VTolerance ====> f (u1,v1)  f (u0,v0) < Tolerance3D
Parameters:  Tolerance3D (float) –
 UTolerance (float &) –
 VTolerance (float &) –
Return type:

Segment
()¶  Segments the surface between U1 and U2 in the UDirection. between V1 and V2 in the VDirection. 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 surface <self> or if the surface makes loop. raises if U2 < U1 or V2 < V1
Parameters: Return type:

SetPole
()¶  Substitutes the pole of range (UIndex, VIndex) with P. If the surface is rational the weight of range (UIndex, VIndex) is not modified. //! Raised if UIndex < 1 or UIndex > NbUPoles or VIndex < 1 or VIndex > NbVPoles.
Parameters: Return type:  Substitutes the pole and the weight of range (UIndex, VIndex) with P and W. //! Raised if UIndex < 1 or UIndex > NbUPoles or VIndex < 1 or VIndex > NbVPoles. Raised if Weight <= Resolution from package gp.
Parameters: Return type:

SetPoleCol
()¶  Changes a column of poles or a part of this column. Raised if Vindex < 1 or VIndex > NbVPoles. //! Raised if CPoles.Lower() < 1 or CPoles.Upper() > NbUPoles.
Parameters:  VIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
Return type:  Changes a column of poles or a part of this column with the corresponding weights. If the surface was rational it can become non rational. If the surface was non rational it can become rational. Raised if Vindex < 1 or VIndex > NbVPoles. //! Raised if CPoles.Lower() < 1 or CPoles.Upper() > NbUPoles Raised if the bounds of CPoleWeights are not the same as the bounds of CPoles. Raised if one of the weight value of CPoleWeights is lower or equal to Resolution from package gp.
Parameters:  VIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:

SetPoleRow
()¶  Changes a row of poles or a part of this row with the corresponding weights. If the surface was rational it can become non rational. If the surface was non rational it can become rational. Raised if Uindex < 1 or UIndex > NbUPoles. //! Raised if CPoles.Lower() < 1 or CPoles.Upper() > NbVPoles raises if the bounds of CPoleWeights are not the same as the bounds of CPoles. Raised if one of the weight value of CPoleWeights is lower or equal to Resolution from package gp.
Parameters:  UIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:  Changes a row of poles or a part of this row. Raised if Uindex < 1 or UIndex > NbUPoles. //! Raised if CPoles.Lower() < 1 or CPoles.Upper() > NbVPoles.
Parameters:  UIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
Return type:

SetUKnot
()¶  Substitutes the UKnots of range UIndex with K. //! Raised if UIndex < 1 or UIndex > NbUKnots //! Raised if K >= UKnots(UIndex+1) or K <= UKnots(UIndex1)
Parameters: Return type:  Changes the value of the UKnots of range UIndex and increases its multiplicity. //! Raised if UIndex is not in the range [FirstUKnotIndex, LastUKnotIndex] given by the methods with the same name. //! Raised if K >= UKnots(UIndex+1) or K <= UKnots(UIndex1) M must be lower than UDegree and greater than the previous multiplicity of the knot of range UIndex.
Parameters: Return type:

SetUKnots
()¶  Changes all the Uknots of the surface. The multiplicity of the knots are not modified. //! Raised if there is an index such that UK (Index+1) <= UK (Index). //! Raised if UK.Lower() < 1 or UK.Upper() > NbUKnots
Parameters: UK (TColStd_Array1OfReal &) – Return type: None

SetUOrigin
()¶  Assigns the knot of index Index in the knots table in the corresponding parametric direction to be the origin of this periodic BSpline surface. As a consequence, the knots and poles tables are modified. Exceptions Standard_NoSuchObject if this BSpline surface is not periodic in the given parametric direction. Standard_DomainError if Index is outside the bounds of the knots table in the given parametric direction.
Parameters: Index (int) – Return type: None

SetVKnot
()¶  Substitutes the VKnots of range VIndex with K. //! Raised if VIndex < 1 or VIndex > NbVKnots //! Raised if K >= VKnots(VIndex+1) or K <= VKnots(VIndex1)
Parameters: Return type:  Changes the value of the VKnots of range VIndex and increases its multiplicity. //! Raised if VIndex is not in the range [FirstVKnotIndex, LastVKnotIndex] given by the methods with the same name. //! Raised if K >= VKnots(VIndex+1) or K <= VKnots(VIndex1) M must be lower than VDegree and greater than the previous multiplicity of the knot of range VIndex.
Parameters: Return type:

SetVKnots
()¶  Changes all the Vknots of the surface. The multiplicity of the knots are not modified. //! Raised if there is an index such that VK (Index+1) <= VK (Index). //! Raised if VK.Lower() < 1 or VK.Upper() > NbVKnots
Parameters: VK (TColStd_Array1OfReal &) – Return type: None

SetVNotPeriodic
()¶  Modifies this surface to be periodic in the u (or v) parametric direction. To become periodic in a given parametric direction a surface must be closed in that parametric direction, and the knot sequence relative to that direction must be periodic. To generate this periodic sequence of knots, the functions FirstUKnotIndex and LastUKnotIndex (or FirstVKnotIndex and LastVKnotIndex) are used to compute I1 and I2. These are the indexes, in the knot array associated with the given parametric direction, of the knots that correspond to the first and last parameters of this BSpline surface in the given parametric direction. Hence the period is: Knots(I1)  Knots(I2) As a result, the knots and poles tables are modified. Exceptions Standard_ConstructionError if the surface is not closed in the given parametric direction.
Return type: None

SetVOrigin
()¶  Assigns the knot of index Index in the knots table in the corresponding parametric direction to be the origin of this periodic BSpline surface. As a consequence, the knots and poles tables are modified. Exceptions Standard_NoSuchObject if this BSpline surface is not periodic in the given parametric direction. Standard_DomainError if Index is outside the bounds of the knots table in the given parametric direction.
Parameters: Index (int) – Return type: None

SetVPeriodic
()¶  Modifies this surface to be periodic in the u (or v) parametric direction. To become periodic in a given parametric direction a surface must be closed in that parametric direction, and the knot sequence relative to that direction must be periodic. To generate this periodic sequence of knots, the functions FirstUKnotIndex and LastUKnotIndex (or FirstVKnotIndex and LastVKnotIndex) are used to compute I1 and I2. These are the indexes, in the knot array associated with the given parametric direction, of the knots that correspond to the first and last parameters of this BSpline surface in the given parametric direction. Hence the period is: Knots(I1)  Knots(I2) As a result, the knots and poles tables are modified. Exceptions Standard_ConstructionError if the surface is not closed in the given parametric direction.
Return type: None

SetWeight
()¶  Changes the weight of the pole of range UIndex, VIndex. If the surface was non rational it can become rational. If the surface was rational it can become non rational. //! Raised if UIndex < 1 or UIndex > NbUPoles or VIndex < 1 or VIndex > NbVPoles //! Raised if weight is lower or equal to Resolution from package gp
Parameters: Return type:

SetWeightCol
()¶  Changes a column of weights of a part of this column. //! Raised if VIndex < 1 or VIndex > NbVPoles //! Raised if CPoleWeights.Lower() < 1 or CPoleWeights.Upper() > NbUPoles. Raised if a weight value is lower or equal to Resolution from package gp.
Parameters:  VIndex (int) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:

SetWeightRow
()¶  Changes a row of weights or a part of this row. //! Raised if UIndex < 1 or UIndex > NbUPoles //! Raised if CPoleWeights.Lower() < 1 or CPoleWeights.Upper() > NbVPoles. Raised if a weight value is lower or equal to Resolution from package gp.
Parameters:  UIndex (int) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:

UIso
()¶  Computes the U isoparametric curve. A Bspline curve is returned.
Parameters: U (float) – Return type: Handle_Geom_Curve  Computes the U isoparametric curve. If CheckRational=False, no try to make it nonrational. A Bspline curve is returned.
Parameters: Return type:

UKnot
()¶  Returns the Knot value of range UIndex. Raised if UIndex < 1 or UIndex > NbUKnots
Parameters: UIndex (int) – Return type: float

UKnotDistribution
()¶  Returns NonUniform or Uniform or QuasiUniform or PiecewiseBezier. If all the knots differ by a positive constant from the preceding knot in the U direction the Bspline surface 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 otherwise the surface is non uniform in the U direction The tolerance criterion is Resolution from package gp.
Return type: GeomAbs_BSplKnotDistribution

UKnotSequence
()¶  Returns the uknots sequence. In this sequence the knots with a multiplicity greater than 1 are repeated. Example : Ku = {k1, k1, k1, k2, k3, k3, k4, k4, k4} //! Raised if the length of Ku is not equal to NbUPoles + UDegree + 1
Parameters: Ku (TColStd_Array1OfReal &) – Return type: None

UKnots
()¶  Returns the knots in the U direction. //! Raised if the length of Ku is not equal to the number of knots in the U direction.
Parameters: Ku (TColStd_Array1OfReal &) – Return type: None

UMultiplicities
()¶  Returns the multiplicities of the knots in the U direction. //! Raised if the length of Mu is not equal to the number of knots in the U direction.
Parameters: Mu (TColStd_Array1OfInteger &) – Return type: None

UMultiplicity
()¶  Returns the multiplicity value of knot of range UIndex in the u direction. Raised if UIndex < 1 or UIndex > NbUKnots.
Parameters: UIndex (int) – Return type: int

VIso
()¶  Computes the V isoparametric curve. A Bspline curve is returned.
Parameters: V (float) – Return type: Handle_Geom_Curve  Computes the V isoparametric curve. If CheckRational=False, no try to make it nonrational. A Bspline curve is returned. transformations
Parameters: Return type:

VKnotDistribution
()¶  Returns NonUniform or Uniform or QuasiUniform or PiecewiseBezier. If all the knots differ by a positive constant from the preceding knot in the V direction the Bspline surface 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 otherwise the surface is non uniform in the V direction. The tolerance criterion is Resolution from package gp.
Return type: GeomAbs_BSplKnotDistribution

VKnotSequence
()¶  Returns the vknots sequence. In this sequence the knots with a multiplicity greater than 1 are repeated. Example : Kv = {k1, k1, k1, k2, k3, k3, k4, k4, k4} //! Raised if the length of Kv is not equal to NbVPoles + VDegree + 1
Parameters: Kv (TColStd_Array1OfReal &) – Return type: None

VKnots
()¶  Returns the knots in the V direction. //! Raised if the length of Kv is not equal to the number of knots in the V direction.
Parameters: Kv (TColStd_Array1OfReal &) – Return type: None

VMultiplicities
()¶  Returns the multiplicities of the knots in the V direction. //! Raised if the length of Mv is not equal to the number of knots in the V direction.
Parameters: Mv (TColStd_Array1OfInteger &) – Return type: None

VMultiplicity
()¶  Returns the multiplicity value of knot of range VIndex in the v direction. Raised if VIndex < 1 or VIndex > NbVKnots
Parameters: VIndex (int) – Return type: int

Weight
()¶  Returns the weight value of range UIndex, VIndex. //! Raised if UIndex < 1 or UIndex > NbUPoles or VIndex < 1 or VIndex > NbVPoles.
Parameters: Return type:

Weights
()¶  Returns the weights of the Bspline surface. //! Raised if the length of W in the U and V direction is not equal to NbUPoles and NbVPoles. value and derivatives computation
Parameters: W (TColStd_Array2OfReal &) – Return type: None

thisown
¶ The membership flag

Geom_BSplineSurface_MaxDegree
(*args)¶  Returns the value of the maximum degree of the normalized Bspline basis functions in the u and v directions.
Return type: int

class
Geom_BezierCurve
(*args)¶ Bases:
OCC.Geom.Geom_BoundedCurve
 Creates a non rational Bezier curve with a set of poles CurvePoles. The weights are defaulted to all being 1. Raises ConstructionError if the number of poles is greater than MaxDegree + 1 or lower than 2.
Parameters: CurvePoles (TColgp_Array1OfPnt) – Return type: None  Creates a rational Bezier curve with the set of poles CurvePoles and the set of weights PoleWeights . If all the weights are identical the curve is considered as non rational. Raises ConstructionError if the number of poles is greater than MaxDegree + 1 or lower than 2 or CurvePoles and CurveWeights have not the same length or one weight value is lower or equal to Resolution from package gp.
Parameters:  CurvePoles (TColgp_Array1OfPnt) –
 PoleWeights (TColStd_Array1OfReal &) –
Return type: 
Degree
()¶  Returns the polynomial degree of the curve. it is the number of poles  1 point P and derivatives (V1, V2, V3) computation The Bezier Curve has a Polynomial representation so the parameter U can be out of the bounds of the curve.
Return type: int

GetHandle
()¶

Increase
()¶  Increases the degree of a bezier curve. Degree is the new degree of <self>. Raises ConstructionError if Degree is greater than MaxDegree or lower than 2 or lower than the initial degree of <self>.
Parameters: Degree (int) – Return type: None

InsertPoleAfter
()¶  Inserts a pole P after the pole of range Index. If the curve <self> is rational the weight value for the new pole of range Index is 1.0. raised if Index is not in the range [1, NbPoles] //! raised if the resulting number of poles is greater than MaxDegree + 1.
Parameters: Return type:  Inserts a pole with its weight in the set of poles after the pole of range Index. If the curve was non rational it can become rational if all the weights are not identical. Raised if Index is not in the range [1, NbPoles] //! Raised if the resulting number of poles is greater than MaxDegree + 1. Raised if Weight is lower or equal to Resolution from package gp.
Parameters: Return type:

InsertPoleBefore
()¶  Inserts a pole P before the pole of range Index. If the curve <self> is rational the weight value for the new pole of range Index is 1.0. Raised if Index is not in the range [1, NbPoles] //! Raised if the resulting number of poles is greater than MaxDegree + 1.
Parameters: Return type:  Inserts a pole with its weight in the set of poles after the pole of range Index. If the curve was non rational it can become rational if all the weights are not identical. Raised if Index is not in the range [1, NbPoles] //! Raised if the resulting number of poles is greater than MaxDegree + 1. Raised if Weight is lower or equal to Resolution from package gp.
Parameters: Return type:

IsRational
()¶  Returns false if all the weights are identical. The tolerance criterion is Resolution from package gp.
Return type: bool

static
MaxDegree
(*args)¶  Returns the value of the maximum polynomial degree of any Geom_BezierCurve curve. This value is 25.
Return type: int

Pole
()¶  Returns the pole of range Index. Raised if Index is not in the range [1, NbPoles]
Parameters: Index (int) – Return type: gp_Pnt

Poles
()¶  Returns all the poles of the curve. //! Raised if the length of P is not equal to the number of poles.
Parameters: P (TColgp_Array1OfPnt) – Return type: None

RemovePole
()¶  Removes the pole of range Index. If the curve was rational it can become non rational. Raised if Index is not in the range [1, NbPoles] Raised if Degree is lower than 2.
Parameters: Index (int) – Return type: None

Resolution
()¶  Computes for this Bezier curve the parametric tolerance UTolerance for a given 3D tolerance Tolerance3D. If f(t) is the equation of this Bezier curve, UTolerance ensures that: t1t0 < UTolerance ===> f(t1)f(t0) < Tolerance3D
Parameters:  Tolerance3D (float) –
 UTolerance (float &) –
Return type:

Segment
()¶  Segments the curve between U1 and U2 which can be out of the bounds of the curve. The curve is oriented from U1 to U2. The control points are modified, the first and the last point are not the same but the parametrization range is [0, 1] else it could not be a Bezier curve. 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.
Parameters: Return type:

SetPole
()¶  Substitutes the pole of range index with P. If the curve <self> is rational the weight of range Index is not modified. raiseD if Index is not in the range [1, NbPoles]
Parameters: Return type:  Substitutes the pole and the weights of range Index. If the curve <self> is not rational it can become rational if all the weights are not identical. If the curve was rational it can become non rational if all the weights are identical. Raised if Index is not in the range [1, NbPoles] Raised if Weight <= Resolution from package gp
Parameters: Return type:

SetWeight
()¶  Changes the weight of the pole of range Index. If the curve <self> is not rational it can become rational if all the weights are not identical. If the curve was rational it can become non rational if all the weights are identical. Raised if Index is not in the range [1, NbPoles] Raised if Weight <= Resolution from package gp
Parameters: Return type:

Weight
()¶  Returns the weight of range Index. Raised if Index is not in the range [1, NbPoles]
Parameters: Index (int) – Return type: float

Weights
()¶  Returns all the weights of the curve. //! Raised if the length of W is not equal to the number of poles.
Parameters: W (TColStd_Array1OfReal &) – Return type: None

thisown
¶ The membership flag

Geom_BezierCurve_MaxDegree
(*args)¶  Returns the value of the maximum polynomial degree of any Geom_BezierCurve curve. This value is 25.
Return type: int

class
Geom_BezierSurface
(*args)¶ Bases:
OCC.Geom.Geom_BoundedSurface
 Creates a nonrational Bezier surface with a set of poles. Control points representation : SPoles(Uorigin,Vorigin) ...................SPoles(Uorigin,Vend) . . . . SPoles(Uend, Vorigin) .....................SPoles(Uend, Vend) For the double array the row indice corresponds to the parametric U direction and the columns indice corresponds to the parametric V direction. The weights are defaulted to all being 1. //! Raised if the number of poles of the surface is lower than 2 or greater than MaxDegree + 1 in one of the two directions U or V.
Parameters: SurfacePoles (TColgp_Array2OfPnt) – Return type: None  —Purpose Creates a rational Bezier surface with a set of poles and a set of weights. For the double array the row indice corresponds to the parametric U direction and the columns indice corresponds to the parametric V direction. If all the weights are identical the surface is considered as nonrational (the tolerance criterion is Resolution from package gp). //! Raised if SurfacePoles and PoleWeights have not the same Rowlength or have not the same ColLength. Raised if PoleWeights (i, j) <= Resolution from gp; Raised if the number of poles of the surface is lower than 2 or greater than MaxDegree + 1 in one of the two directions U or V.
Parameters:  SurfacePoles (TColgp_Array2OfPnt) –
 PoleWeights (TColStd_Array2OfReal &) –
Return type: 
ExchangeUV
()¶  Exchanges the direction U and V on a Bezier surface As a consequence:  the poles and weights tables are transposed,  degrees, rational characteristics and so on are exchanged between the two parametric directions, and  the orientation of the surface is reversed.
Return type: None

GetHandle
()¶

Increase
()¶  Increases the degree of this Bezier surface in the two parametric directions. //! Raised if UDegree < UDegree <self> or VDegree < VDegree <self> Raised if the degree of the surface is greater than MaxDegree in one of the two directions U or V.
Parameters: Return type:

InsertPoleColAfter
()¶  Inserts a column of poles. If the surface is rational the weights values associated with CPoles are equal defaulted to 1. //! Raised if Vindex < 1 or VIndex > NbVPoles. //! raises if VDegree is greater than MaxDegree. raises if the Length of CPoles is not equal to NbUPoles
Parameters:  VIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
Return type:  Inserts a column of poles and weights. If the surface was nonrational it can become rational. //! Raised if Vindex < 1 or VIndex > NbVPoles. Raised if . VDegree is greater than MaxDegree. . the Length of CPoles is not equal to NbUPoles . a weight value is lower or equal to Resolution from package gp
Parameters:  VIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:

InsertPoleColBefore
()¶  Inserts a column of poles. If the surface is rational the weights values associated with CPoles are equal defaulted to 1. //! Raised if Vindex < 1 or VIndex > NbVPoles. //! Raised if VDegree is greater than MaxDegree. Raised if the Length of CPoles is not equal to NbUPoles
Parameters:  VIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
Return type:  Inserts a column of poles and weights. If the surface was nonrational it can become rational. //! Raised if Vindex < 1 or VIndex > NbVPoles. Raised if : . VDegree is greater than MaxDegree. . the Length of CPoles is not equal to NbUPoles . a weight value is lower or equal to Resolution from package gp
Parameters:  VIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:

InsertPoleRowAfter
()¶  Inserts a row of poles. If the surface is rational the weights values associated with CPoles are equal defaulted to 1. //! Raised if Uindex < 1 or UIndex > NbUPoles. //! Raised if UDegree is greater than MaxDegree. Raised if the Length of CPoles is not equal to NbVPoles
Parameters:  UIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
Return type:  Inserts a row of poles and weights. If the surface was nonrational it can become rational. //! Raised if Uindex < 1 or UIndex > NbUPoles. Raised if : . UDegree is greater than MaxDegree. . the Length of CPoles is not equal to NbVPoles . a weight value is lower or equal to Resolution from package gp
Parameters:  UIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:

InsertPoleRowBefore
()¶  Inserts a row of poles. If the surface is rational the weights values associated with CPoles are equal defaulted to 1. //! Raised if Uindex < 1 or UIndex > NbUPoles. //! Raised if UDegree is greater than MaxDegree. Raised if the Length of CPoles is not equal to NbVPoles
Parameters:  UIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
Return type:  Inserts a row of poles and weights. If the surface was nonrational it can become rational. //! Raised if Uindex < 1 or UIndex > NbUPoles. Raised if : . UDegree is greater than MaxDegree. . the Length of CPoles is not equal to NbVPoles . a weight value is lower or equal to Resolution from pacakage gp
Parameters:  UIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:

IsURational
()¶  Returns False if the weights are identical in the U direction, The tolerance criterion is Resolution from package gp. Example : 1.0, 1.0, 1.0 if Weights = 0.5, 0.5, 0.5 returns False 2.0, 2.0, 2.0
Return type: bool

IsVRational
()¶  Returns False if the weights are identical in the V direction, The tolerance criterion is Resolution from package gp. Example : 1.0, 2.0, 0.5 if Weights = 1.0, 2.0, 0.5 returns False 1.0, 2.0, 0.5
Return type: bool

static
MaxDegree
(*args)¶  Returns the value of the maximum polynomial degree of a Bezier surface. This value is 25.
Return type: int

Pole
()¶  Returns the pole of range UIndex, VIndex Raised if UIndex < 1 or UIndex > NbUPoles, or VIndex < 1 or VIndex > NbVPoles.
Parameters: Return type:

Poles
()¶  Returns the poles of the Bezier surface. //! Raised if the length of P in the U an V direction is not equal to NbUPoles and NbVPoles.
Parameters: P (TColgp_Array2OfPnt) – Return type: None

RemovePoleCol
()¶  Removes a column of poles. If the surface was rational it can become nonrational. //! Raised if NbVPoles <= 2 after removing, a Bezier surface must have at least two columns of poles. Raised if Vindex < 1 or VIndex > NbVPoles
Parameters: VIndex (int) – Return type: None

RemovePoleRow
()¶  Removes a row of poles. If the surface was rational it can become nonrational. //! Raised if NbUPoles <= 2 after removing, a Bezier surface must have at least two rows of poles. Raised if Uindex < 1 or UIndex > NbUPoles
Parameters: UIndex (int) – Return type: None

Resolution
()¶  Computes two tolerance values for this Bezier surface, based on the given tolerance in 3D space Tolerance3D. The tolerances computed are:  UTolerance in the u parametric direction, and  VTolerance in the v parametric direction. If f(u,v) is the equation of this Bezier surface, UTolerance and VTolerance guarantee that:  u1  u0  < UTolerance and  v1  v0  < VTolerance ====> f (u1,v1)  f (u0,v0) < Tolerance3D
Parameters:  Tolerance3D (float) –
 UTolerance (float &) –
 VTolerance (float &) –
Return type:

Segment
()¶  Modifies this Bezier surface by segmenting it between U1 and U2 in the u parametric direction, and between V1 and V2 in the v parametric direction. U1, U2, V1, and V2 can be outside the bounds of this surface.  U1 and U2 isoparametric Bezier curves, segmented between V1 and V2, become the two bounds of the surface in the v parametric direction (0. and 1. u isoparametric curves).  V1 and V2 isoparametric Bezier curves, segmented between U1 and U2, become the two bounds of the surface in the u parametric direction (0. and 1. v isoparametric curves). The poles and weights tables are modified, but the degree of this surface in the u and v parametric directions does not change. U1 can be greater than U2, and V1 can be greater than V2. In these cases, the corresponding parametric direction is inverted. The orientation of the surface is inverted if one (and only one) parametric direction is inverted.
Parameters: Return type:

SetPole
()¶  Modifies a pole value. If the surface is rational the weight of range (UIndex, VIndex) is not modified. //! Raised if UIndex < 1 or UIndex > NbUPoles or VIndex < 1 or VIndex > NbVPoles.
Parameters: Return type:  Substitutes the pole and the weight of range UIndex, VIndex. If the surface <self> is not rational it can become rational. if the surface was rational it can become nonrational. //! raises if UIndex < 1 or UIndex > NbUPoles or VIndex < 1 or VIndex > NbVPoles. Raised if Weight <= Resolution from package gp.
Parameters: Return type:

SetPoleCol
()¶  Modifies a column of poles. The length of CPoles can be lower but not greater than NbUPoles so you can modify just a part of the column. Raised if VIndex < 1 or VIndex > NbVPoles //! Raised if CPoles.Lower() < 1 or CPoles.Upper() > NbUPoles
Parameters:  VIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
Return type:  Modifies a column of poles. If the surface was rational it can become nonrational If the surface was nonrational it can become rational. The length of CPoles can be lower but not greater than NbUPoles so you can modify just a part of the column. Raised if VIndex < 1 or VIndex > NbVPoles //! Raised if CPoles.Lower() < 1 or CPoles.Upper() > NbUPoles Raised if CPoleWeights and CPoles have not the same bounds. Raised if one of the weight value CPoleWeights (i) is lower or equal to Resolution from package gp.
Parameters:  VIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:

SetPoleRow
()¶  Modifies a row of poles. The length of CPoles can be lower but not greater than NbVPoles so you can modify just a part of the row. Raised if UIndex < 1 or UIndex > NbUPoles //! Raised if CPoles.Lower() < 1 or CPoles.Upper() > NbVPoles
Parameters:  UIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
Return type:  Modifies a row of poles and weights. If the surface was rational it can become nonrational. If the surface was nonrational it can become rational. The length of CPoles can be lower but not greater than NbVPoles so you can modify just a part of the row. Raised if UIndex < 1 or UIndex > NbUPoles //! Raised if CPoles.Lower() < 1 or CPoles.Upper() > NbVPoles Raised if CPoleWeights and CPoles have not the same bounds. Raised if one of the weight value CPoleWeights (i) is lower or equal to Resolution from gp.
Parameters:  UIndex (int) –
 CPoles (TColgp_Array1OfPnt) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:

SetWeight
()¶  Modifies the weight of the pole of range UIndex, VIndex. If the surface was nonrational it can become rational. If the surface was rational it can become nonrational. //! Raised if UIndex < 1 or UIndex > NbUPoles or VIndex < 1 or VIndex > NbVPoles. Raised if Weight <= Resolution from package gp.
Parameters: Return type:

SetWeightCol
()¶  Modifies a column of weights. If the surface was rational it can become nonrational. If the surface was nonrational it can become rational. The length of CPoleWeights can be lower but not greater than NbUPoles. Raised if VIndex < 1 or VIndex > NbVPoles //! Raised if CPoleWeights.Lower() < 1 or CPoleWeights.Upper() > NbUPoles Raised if one of the weight value CPoleWeights (i) is lower or equal to Resolution from package gp.
Parameters:  VIndex (int) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:

SetWeightRow
()¶  Modifies a row of weights. If the surface was rational it can become nonrational. If the surface was nonrational it can become rational. The length of CPoleWeights can be lower but not greater than NbVPoles. Raised if UIndex < 1 or UIndex > NbUPoles //! Raised if CPoleWeights.Lower() < 1 or CPoleWeights.Upper() > NbVPoles Raised if one of the weight value CPoleWeights (i) is lower or equal to Resolution from package gp.
Parameters:  UIndex (int) –
 CPoleWeights (TColStd_Array1OfReal &) –
Return type:

Weight
()¶  Returns the weight of range UIndex, VIndex //! Raised if UIndex < 1 or UIndex > NbUPoles, or VIndex < 1 or VIndex > NbVPoles.
Parameters: Return type:

Weights
()¶  Returns the weights of the Bezier surface. //! Raised if the length of W in the U an V direction is not equal to NbUPoles and NbVPoles.
Parameters: W (TColStd_Array2OfReal &) – Return type: None

thisown
¶ The membership flag

Geom_BezierSurface_MaxDegree
(*args)¶  Returns the value of the maximum polynomial degree of a Bezier surface. This value is 25.
Return type: int

class
Geom_BoundedCurve
(*args, **kwargs)¶ Bases:
OCC.Geom.Geom_Curve

GetHandle
()¶

thisown
¶ The membership flag


class
Geom_BoundedSurface
(*args, **kwargs)¶ Bases:
OCC.Geom.Geom_Surface

GetHandle
()¶

thisown
¶ The membership flag


class
Geom_CartesianPoint
(*args)¶ Bases:
OCC.Geom.Geom_Point
 Returns a transient copy of P.
Parameters: P (gp_Pnt) – Return type: None  Constructs a point defined by its three Cartesian coordinates X, Y and Z.
Parameters: Return type: 
GetHandle
()¶

SetCoord
()¶  Assigns the coordinates X, Y and Z to this point.
Parameters: Return type:

thisown
¶ The membership flag

class
Geom_Circle
(*args)¶ Bases:
OCC.Geom.Geom_Conic
 Constructs a circle by conversion of the gp_Circ circle C.
Parameters: C (gp_Circ) – Return type: None  Constructs a circle of radius Radius, where A2 locates the circle and defines its orientation in 3D space such that:  the center of the circle is the origin of A2,  the origin, ‘X Direction’ and ‘Y Direction’ of A2 define the plane of the circle,  A2 is the local coordinate system of the circle. Note: It is possible to create a circle where Radius is equal to 0.0. raised if Radius < 0.
Parameters: Return type: 
Circ
()¶  returns the non transient circle from gp with the same geometric properties as <self>.
Return type: gp_Circ

GetHandle
()¶

SetCirc
()¶  Set <self> so that <self> has the same geometric properties as C.
Parameters: C (gp_Circ) – Return type: None

SetRadius
()¶  Assigns the value R to the radius of this circle. Note: it is possible to have a circle with a radius equal to 0.0. Exceptions  Standard_ConstructionError if R is negative.
Parameters: R (float) – Return type: None

thisown
¶ The membership flag

class
Geom_Conic
(*args, **kwargs)¶ Bases:
OCC.Geom.Geom_Curve

Axis
()¶  Returns the ‘main Axis’ of this conic. This axis is normal to the plane of the conic.
Return type: gp_Ax1

Eccentricity
()¶  Returns the eccentricity value of the conic e. e = 0 for a circle 0 < e < 1 for an ellipse (e = 0 if MajorRadius = MinorRadius) e > 1 for a hyperbola e = 1 for a parabola Exceptions Standard_DomainError in the case of a hyperbola if its major radius is null.
Return type: float

GetHandle
()¶

Location
()¶  Returns the location point of the conic. For the circle, the ellipse and the hyperbola it is the center of the conic. For the parabola it is the Apex of the parabola.
Return type: gp_Pnt

Position
()¶  Returns the local coordinates system of the conic. The main direction of the Axis2Placement is normal to the plane of the conic. The X direction of the Axis2placement is in the plane of the conic and corresponds to the origin for the conic’s parametric value u.
Return type: gp_Ax2

SetAxis
()¶  Changes the orientation of the conic’s plane. The normal axis to the plane is A1. The XAxis and the YAxis are recomputed. //! raised if the A1 is parallel to the XAxis of the conic.
Parameters: A1 (gp_Ax1) – Return type: None

SetPosition
()¶  changes the local coordinate system of the conic.
Parameters: A2 (gp_Ax2) – Return type: None

XAxis
()¶  Returns the XAxis of the conic. This axis defines the origin of parametrization of the conic. This axis is perpendicular to the Axis of the conic. This axis and the Yaxis define the plane of the conic.
Return type: gp_Ax1

YAxis
()¶  Returns the YAxis of the conic. The YAxis is perpendicular to the Xaxis. This axis and the Xaxis define the plane of the conic.
Return type: gp_Ax1

thisown
¶ The membership flag


class
Geom_ConicalSurface
(*args)¶ Bases:
OCC.Geom.Geom_ElementarySurface
 A3 defines the local coordinate system of the conical surface. Ang is the conical surface semiangle ]0, PI/2[. Radius is the radius of the circle Viso in the placement plane of the conical surface defined with ‘XAxis’ and ‘YAxis’. The ‘ZDirection’ of A3 defines the direction of the surface’s axis of symmetry. If the location point of A3 is the apex of the surface Radius = 0 . At the creation the parametrization of the surface is defined such that the normal Vector (N = D1U ^ D1V) is oriented towards the ‘outside region’ of the surface. //! Raised if Radius < 0.0 or Ang < Resolution from gp or Ang >= PI/2  Resolution
Parameters: Return type:  Creates a ConicalSurface from a non transient Cone from package gp.
Parameters: C (gp_Cone) – Return type: None 
Apex
()¶  Computes the apex of this cone. It is on the negative side of the axis of revolution of this cone if the halfangle at the apex is positive, and on the positive side of the ‘main Axis’ if the halfangle is negative.
Return type: gp_Pnt

Coefficients
()¶  Returns the coefficients of the implicit equation of the quadric in the absolute cartesian coordinate system : These coefficients are normalized. A1.X**2 + A2.Y**2 + A3.Z**2 + 2.(B1.X.Y + B2.X.Z + B3.Y.Z) + 2.(C1.X + C2.Y + C3.Z) + D = 0.0
Parameters:  A1 (float &) –
 A2 (float &) –
 A3 (float &) –
 B1 (float &) –
 B2 (float &) –
 B3 (float &) –
 C1 (float &) –
 C2 (float &) –
 C3 (float &) –
 D (float &) –
Return type:

Cone
()¶  returns a non transient cone with the same geometric properties as <self>.
Return type: gp_Cone

GetHandle
()¶

RefRadius
()¶  Returns the reference radius of this cone. The reference radius is the radius of the circle formed by the intersection of this cone and its reference plane (i.e. the plane defined by the origin, ‘X Direction’ and ‘Y Direction’ of the local coordinate system of this cone). If the apex of this cone is on the origin of the local coordinate system of this cone, the returned value is 0.
Return type: float

SetCone
()¶  Set <self> so that <self> has the same geometric properties as C.
Parameters: C (gp_Cone) – Return type: None

SetRadius
()¶  Changes the radius of the conical surface in the placement plane (Z = 0, V = 0). The local coordinate system is not modified. Raised if R < 0.0
Parameters: R (float) – Return type: None

SetSemiAngle
()¶  Changes the semi angle of the conical surface. //! Raised if Ang < Resolution or Ang >= PI/2  Resolution
Parameters: Ang (float) – Return type: None

thisown
¶ The membership flag

class
Geom_Curve
(*args, **kwargs)¶ Bases:
OCC.Geom.Geom_Geometry

Continuity
()¶  It is 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, G1 : tangency continuity all along the Curve, G2 : curvature continuity all along the Curve, CN : the order of continuity is infinite.
Return type: GeomAbs_Shape

D0
()¶  Returns in P the point of parameter U. If the curve is periodic then the returned point is P(U) with U = Ustart + (U  Uend) where Ustart and Uend are the parametric bounds of the curve. //! Raised only for the ‘OffsetCurve’ if it is not possible to compute the current point. For example when the first derivative on the basis curve and the offset direction are parallel.
Parameters: Return type: void

D1
()¶  Returns the point P of parameter U and the first derivative V1. Raised if the continuity of the curve is not C1.
Parameters: Return type: void

D2
()¶  Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the curve is not C2.
Parameters: Return type: void

D3
()¶  Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the curve is not C3.
Parameters: Return type: void

DN
()¶  The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the curve is not CN. //! Raised if the derivative cannot be computed easily. e.g. rational bspline and n > 3. Raised if N < 1.
Parameters: Return type:

FirstParameter
()¶  Returns the value of the first parameter. Warnings : It can be RealFirst from package Standard if the curve is infinite
Return type: float

GetHandle
()¶

IsCN
()¶  Returns true if the degree of continuity of this curve is at least N. Exceptions  Standard_RangeError if N is less than 0.
Parameters: N (int) – Return type: bool

IsClosed
()¶  Returns true if the curve is closed. Some curves such as circle are always closed, others such as line are never closed (by definition). Some Curves such as OffsetCurve can be closed or not. These curves are considered as closed if the distance between the first point and the last point of the curve is lower or equal to the Resolution from package gp wich is a fixed criterion independant of the application.
Return type: bool

IsPeriodic
()¶  Is the parametrization of the curve periodic ? It is possible only if the curve is closed and if the following relation is satisfied : for each parametric value U the distance between the point P(u) and the point P (u + T) is lower or equal to Resolution from package gp, T is the period and must be a constant. There are three possibilities : . the curve is never periodic by definition (SegmentLine) . the curve is always periodic by definition (Circle) . the curve can be defined as periodic (BSpline). In this case a function SetPeriodic allows you to give the shape of the curve. The general rule for this case is : if a curve can be periodic or not the default periodicity set is non periodic and you have to turn (explicitly) the curve into a periodic curve if you want the curve to be periodic.
Return type: bool

LastParameter
()¶  Returns the value of the last parameter. Warnings : It can be RealLast from package Standard if the curve is infinite
Return type: float

ParametricTransformation
()¶  Returns a coefficient to compute the parameter on the transformed curve for the transform of the point on <self>. //! Transformed(T)>Value(U * ParametricTransformation(T)) //! is the same point as //! Value(U).Transformed(T) //! This methods returns 1. //! It can be redefined. For example on the Line.
Parameters: T (gp_Trsf) – Return type: float

Period
()¶  Returns the period of this curve. Exceptions Standard_NoSuchObject if this curve is not periodic.
Return type: float

Reverse
()¶  Changes the direction of parametrization of <self>. The ‘FirstParameter’ and the ‘LastParameter’ are not changed but the orientation of the curve is modified. If the curve is bounded 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: void

Reversed
()¶  Returns a copy of <self> reversed.
Return type: Handle_Geom_Curve

ReversedParameter
()¶  Returns the parameter on the reversed curve for the point of parameter U on <self>. //! me>Reversed()>Value(me>ReversedParameter(U)) //! is the same point as //! me>Value(U)
Parameters: U (float) – Return type: float

TransformedParameter
()¶  Returns the parameter on the transformed curve for the transform of the point of parameter U on <self>. //! me>Transformed(T)>Value(me>TransformedParameter(U,T)) //! is the same point as //! me>Value(U).Transformed(T) //! This methods returns <U> //! It can be redefined. For example on the Line.
Parameters: Return type:

Value
()¶  Computes the point of parameter U on <self>. If the curve is periodic then the returned point is P(U) with U = Ustart + (U  Uend) where Ustart and Uend are the parametric bounds of the curve. it is implemented with D0. //! Raised only for the ‘OffsetCurve’ if it is not possible to compute the current point. For example when the first derivative on the basis curve and the offset direction are parallel.
Parameters: U (float) – Return type: gp_Pnt

thisown
¶ The membership flag


class
Geom_CylindricalSurface
(*args)¶ Bases:
OCC.Geom.Geom_ElementarySurface
 A3 defines the local coordinate system of the cylindrical surface. The ‘ZDirection’ of A3 defines the direction of the surface’s axis of symmetry. At the creation the parametrization of the surface is defined such that the normal Vector (N = D1U ^ D1V) is oriented towards the ‘outside region’ of the surface. Warnings : It is not forbidden to create a cylindrical surface with Radius = 0.0 Raised if Radius < 0.0
Parameters: Return type:  Creates a CylindricalSurface from a non transient Cylinder from package gp.
Parameters: C (gp_Cylinder) – Return type: None 
Coefficients
()¶  Returns the coefficients of the implicit equation of the quadric in the absolute cartesian coordinate system : These coefficients are normalized. A1.X**2 + A2.Y**2 + A3.Z**2 + 2.(B1.X.Y + B2.X.Z + B3.Y.Z) + 2.(C1.X + C2.Y + C3.Z) + D = 0.0
Parameters:  A1 (float &) –
 A2 (float &) –
 A3 (float &) –
 B1 (float &) –
 B2 (float &) –
 B3 (float &) –
 C1 (float &) –
 C2 (float &) –
 C3 (float &) –
 D (float &) –
Return type:

Cylinder
()¶  returns a non transient cylinder with the same geometric properties as <self>.
Return type: gp_Cylinder

GetHandle
()¶

SetCylinder
()¶  Set <self> so that <self> has the same geometric properties as C.
Parameters: C (gp_Cylinder) – Return type: None

SetRadius
()¶  Changes the radius of the cylinder. Raised if R < 0.0
Parameters: R (float) – Return type: None

thisown
¶ The membership flag

class
Geom_Direction
(*args)¶ Bases:
OCC.Geom.Geom_Vector
 Creates a unit vector with it 3 cartesian coordinates. //! Raised if Sqrt( X*X + Y*Y + Z*Z) <= Resolution from gp.
Parameters: Return type:  Creates a transient copy of <self>.
Parameters: V (gp_Dir) – Return type: None 
GetHandle
()¶

SetCoord
()¶  Sets <self> to X,Y,Z coordinates. //! Raised if Sqrt( X*X + Y*Y + Z*Z) <= Resolution from gp.
Parameters: Return type:

SetDir
()¶  Converts the gp_Dir unit vector V into this unit vector.
Parameters: V (gp_Dir) – Return type: None

SetX
()¶  Changes the X coordinate of <self>. //! Raised if Sqrt( X*X + Y*Y + Z*Z) <= Resolution from gp.
Parameters: X (float) – Return type: None

SetY
()¶  Changes the Y coordinate of <self>. //! Raised if Sqrt( X*X + Y*Y + Z*Z) <= Resolution from gp.
Parameters: Y (float) – Return type: None

SetZ
()¶  Changes the Z coordinate of <self>. //! Raised if Sqrt( X*X + Y*Y + Z*Z) <= Resolution from gp.
Parameters: Z (float) – Return type: None

thisown
¶ The membership flag

class
Geom_ElementarySurface
(*args, **kwargs)¶ Bases:
OCC.Geom.Geom_Surface

GetHandle
()¶

Location
()¶  Returns the location point of the local coordinate system of the surface.
Return type: gp_Pnt

SetAxis
()¶  Changes the main axis (ZAxis) of the elementary surface. //! Raised if the direction of A1 is parallel to the XAxis of the coordinate system of the surface.
Parameters: A1 (gp_Ax1) – Return type: None

SetLocation
()¶  Changes the location of the local coordinates system of the surface.
Parameters: Loc (gp_Pnt) – Return type: None

SetPosition
()¶  Changes the local coordinates system of the surface.
Parameters: A3 (gp_Ax3) – Return type: None

thisown
¶ The membership flag


class
Geom_Ellipse
(*args)¶ Bases:
OCC.Geom.Geom_Conic
 Constructs an ellipse by conversion of the gp_Elips ellipse E.
Parameters: E (gp_Elips) – Return type: None  Constructs an ellipse defined by its major and minor radii, MajorRadius and MinorRadius, where A2 locates the ellipse and defines its orientation in 3D space such that:  the center of the ellipse is the origin of A2,  the ‘X Direction’ of A2 defines the major axis of the ellipse, i.e. the major radius MajorRadius is measured along this axis,  the ‘Y Direction’ of A2 defines the minor axis of the ellipse, i.e. the minor radius MinorRadius is measured along this axis,  A2 is the local coordinate system of the ellipse. Exceptions Standard_ConstructionError if:  MajorRadius is less than MinorRadius, or  MinorRadius is less than 0. Warning The Geom package does not prevent the construction of an ellipse where MajorRadius and MinorRadius are equal.
Parameters: Return type: 
Directrix1
()¶  This directrix is the line normal to the XAxis of the ellipse in the local plane (Z = 0) at a distance d = MajorRadius / e from the center of the ellipse, where e is the eccentricity of the ellipse. This line is parallel to the ‘YAxis’. The intersection point between directrix1 and the ‘XAxis’ is the ‘Location’ point of the directrix1. This point is on the positive side of the ‘XAxis’. Raised if Eccentricity = 0.0. (The ellipse degenerates into a circle)
Return type: gp_Ax1

Directrix2
()¶  This line is obtained by the symmetrical transformation of ‘Directrix1’ with respect to the ‘YAxis’ of the ellipse. //! Raised if Eccentricity = 0.0. (The ellipse degenerates into a circle).
Return type: gp_Ax1

Focal
()¶  Computes the focal distance. It is the distance between the the two focus of the ellipse.
Return type: float

Focus1
()¶  Returns the first focus of the ellipse. This focus is on the positive side of the ‘XAxis’ of the ellipse.
Return type: gp_Pnt

Focus2
()¶  Returns the second focus of the ellipse. This focus is on the negative side of the ‘XAxis’ of the ellipse.
Return type: gp_Pnt

GetHandle
()¶

Parameter
()¶  Returns p = (1  e * e) * MajorRadius where e is the eccentricity of the ellipse. Returns 0 if MajorRadius = 0
Return type: float

SetElips
()¶  Converts the gp_Elips ellipse E into this ellipse.
Parameters: E (gp_Elips) – Return type: None

SetMajorRadius
()¶  Assigns a value to the major radius of this ellipse. ConstructionError raised if MajorRadius < MinorRadius.
Parameters: MajorRadius (float) – Return type: None

SetMinorRadius
()¶  Assigns a value to the minor radius of this ellipse. ConstructionError raised if MajorRadius < MinorRadius or if MinorRadius < 0.
Parameters: MinorRadius (float) – Return type: None

thisown
¶ The membership flag

class
Geom_Geometry
(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared

Copy
()¶  Creates a new object which is a copy of this geometric object.
Return type: Handle_Geom_Geometry

GetHandle
()¶

Mirror
()¶  Performs the symmetrical transformation of a Geometry with respect to the point P which is the center of the symmetry.
Parameters: P (gp_Pnt) – Return type: None  Performs the symmetrical transformation of a Geometry with respect to an axis placement which is the axis of the symmetry.
Parameters: A1 (gp_Ax1) – Return type: None  Performs the symmetrical transformation of a Geometry with respect to a plane. The axis placement A2 locates the plane of the symmetry : (Location, XDirection, YDirection).
Parameters: A2 (gp_Ax2) – Return type: None

Mirrored
()¶ Parameters: Return type: Return type: Return type:

Rotate
()¶  Rotates a Geometry. A1 is the axis of the rotation. Ang is the angular value of the rotation in radians.
Parameters: Return type:

Rotated
()¶ Parameters: Return type:

Scale
()¶  Scales a Geometry. S is the scaling value.
Parameters: Return type:

Scaled
()¶ Parameters: Return type:

Transform
()¶  Transformation of a geometric object. This tansformation can be a translation, a rotation, a symmetry, a scaling or a complex transformation obtained by combination of the previous elementaries transformations. (see class Transformation of the package Geom).
Parameters: T (gp_Trsf) – Return type: void

Transformed
()¶ Parameters: T (gp_Trsf) – Return type: Handle_Geom_Geometry

Translate
()¶  Translates a Geometry. V is the vector of the tanslation.
Parameters: V (gp_Vec) – Return type: None  Translates a Geometry from the point P1 to the point P2.
Parameters: Return type:

Translated
()¶ Parameters: Return type: Return type:

thisown
¶ The membership flag


class
Geom_HSequenceOfBSplineSurface
(*args)¶ Bases:
OCC.MMgt.MMgt_TShared
Return type: None 
Append
()¶ Parameters:  anItem (Handle_Geom_BSplineSurface &) –
 aSequence (Handle_Geom_HSequenceOfBSplineSurface &) –
Return type: Return type:

ChangeSequence
()¶ Return type: Geom_SequenceOfBSplineSurface

ChangeValue
()¶ Parameters: anIndex (int) – Return type: Handle_Geom_BSplineSurface

GetHandle
()¶

InsertAfter
()¶ Parameters:  anIndex (int) –
 anItem (Handle_Geom_BSplineSurface &) –
 anIndex –
 aSequence (Handle_Geom_HSequenceOfBSplineSurface &) –
Return type: Return type:

InsertBefore
()¶ Parameters:  anIndex (int) –
 anItem (Handle_Geom_BSplineSurface &) –
 anIndex –
 aSequence (Handle_Geom_HSequenceOfBSplineSurface &) –
Return type: Return type:

Prepend
()¶ Parameters:  anItem (Handle_Geom_BSplineSurface &) –
 aSequence (Handle_Geom_HSequenceOfBSplineSurface &) –
Return type: Return type:

Remove
()¶ Parameters: Return type: Return type:

Sequence
()¶ Return type: Geom_SequenceOfBSplineSurface

Split
()¶ Parameters: anIndex (int) – Return type: Handle_Geom_HSequenceOfBSplineSurface

Value
()¶ Parameters: anIndex (int) – Return type: Handle_Geom_BSplineSurface

thisown
¶ The membership flag


class
Geom_Hyperbola
(*args)¶ Bases:
OCC.Geom.Geom_Conic
 Constructs a hyperbola by conversion of the gp_Hypr hyperbola H.
Parameters: H (gp_Hypr) – Return type: None  Constructs a hyperbola defined by its major and minor radii, MajorRadius and MinorRadius, where A2 locates the hyperbola and defines its orientation in 3D space such that:  the center of the hyperbola is the origin of A2,  the ‘X Direction’ of A2 defines the major axis of the hyperbola, i.e. the major radius MajorRadius is measured along this axis,  the ‘Y Direction’ of A2 defines the minor axis of the hyperbola, i.e. the minor radius MinorRadius is measured along this axis,  A2 is the local coordinate system of the hyperbola. Exceptions Standard_ConstructionError if:  MajorRadius is less than 0.0,  MinorRadius is less than 0.0.
Parameters: Return type: 
Asymptote1
()¶  In the local coordinate system of the hyperbola the equation of the hyperbola is (X*X)/(A*A)  (Y*Y)/(B*B) = 1.0 and the equation of the first asymptote is Y = (B/A)*X. Raises ConstructionError if MajorRadius = 0.0
Return type: gp_Ax1

Asymptote2
()¶  In the local coordinate system of the hyperbola the equation of the hyperbola is (X*X)/(A*A)  (Y*Y)/(B*B) = 1.0 and the equation of the first asymptote is Y = (B/A)*X. Raises ConstructionError if MajorRadius = 0.0
Return type: gp_Ax1

ConjugateBranch1
()¶  This branch of hyperbola is on the positive side of the YAxis of <self>.
Return type: gp_Hypr

ConjugateBranch2
()¶  This branch of hyperbola is on the negative side of the YAxis of <self>. Note: The diagram given under the class purpose indicates where these two branches of hyperbola are positioned in relation to this branch of hyperbola.
Return type: gp_Hypr

Directrix1
()¶  This directrix is the line normal to the XAxis of the hyperbola in the local plane (Z = 0) at a distance d = MajorRadius / e from the center of the hyperbola, where e is the eccentricity of the hyperbola. This line is parallel to the YAxis. The intersection point between directrix1 and the XAxis is the location point of the directrix1. This point is on the positive side of the XAxis.
Return type: gp_Ax1

Directrix2
()¶  This line is obtained by the symmetrical transformation of ‘directrix1’ with respect to the YAxis of the hyperbola.
Return type: gp_Ax1

Focal
()¶  Computes the focal distance. It is the distance between the two focus of the hyperbola.
Return type: float

Focus1
()¶  Returns the first focus of the hyperbola. This focus is on the positive side of the XAxis of the hyperbola.
Return type: gp_Pnt

Focus2
()¶  Returns the second focus of the hyperbola. This focus is on the negative side of the XAxis of the hyperbola.
Return type: gp_Pnt

GetHandle
()¶

Hypr
()¶  returns the non transient parabola from gp with the same geometric properties as <self>.
Return type: gp_Hypr

MajorRadius
()¶  Returns the major or minor radius of this hyperbola. The major radius is also the distance between the center of the hyperbola and the apex of the main branch (located on the ‘X Axis’ of the hyperbola).
Return type: float

MinorRadius
()¶  Returns the major or minor radius of this hyperbola. The minor radius is also the distance between the center of the hyperbola and the apex of a conjugate branch (located on the ‘Y Axis’ of the hyperbola).
Return type: float

OtherBranch
()¶  Computes the ‘other’ branch of this hyperbola. This is the symmetrical branch with respect to the center of this hyperbola. Note: The diagram given under the class purpose indicates where the ‘other’ branch is positioned in relation to this branch of the hyperbola.
Return type: gp_Hypr

Parameter
()¶  Returns p = (e * e  1) * MajorRadius where e is the eccentricity of the hyperbola. raised if MajorRadius = 0.0
Return type: float

SetHypr
()¶  Converts the gp_Hypr hyperbola H into this hyperbola.
Parameters: H (gp_Hypr) – Return type: None

SetMajorRadius
()¶  Assigns a value to the major radius of this hyperbola. Exceptions Standard_ConstructionError if:  MajorRadius is less than 0.0, or  MinorRadius is less than 0.0.Raised if MajorRadius < 0.0
Parameters: MajorRadius (float) – Return type: None

SetMinorRadius
()¶  Assigns a value to the minor radius of this hyperbola. Exceptions Standard_ConstructionError if:  MajorRadius is less than 0.0, or  MinorRadius is less than 0.0.Raised if MajorRadius < 0.0
Parameters: MinorRadius (float) – Return type: None

thisown
¶ The membership flag

class
Geom_Line
(*args)¶ Bases:
OCC.Geom.Geom_Curve
 Creates a line located in 3D space with the axis placement A1. The Location of A1 is the origin of the line.
Parameters: A1 (gp_Ax1) – Return type: None  Creates a line from a non transient line from package gp.
Parameters: L (gp_Lin) – Return type: None  Constructs a line passing through point P and parallel to vector V (P and V are, respectively, the origin and the unit vector of the positioning axis of the line).
Parameters: Return type: 
GetHandle
()¶

Lin
()¶  Returns non transient line from gp with the same geometric properties as <self>
Return type: gp_Lin

Position
()¶  Returns the positioning axis of this line; this is also its local coordinate system.
Return type: gp_Ax1

SetLin
()¶  Set <self> so that <self> has the same geometric properties as L.
Parameters: L (gp_Lin) – Return type: None

SetLocation
()¶  changes the ‘Location’ point (origin) of the line.
Parameters: P (gp_Pnt) – Return type: None

SetPosition
()¶  changes the ‘Location’ and a the ‘Direction’ of <self>.
Parameters: A1 (gp_Ax1) – Return type: None

thisown
¶ The membership flag

class
Geom_OffsetCurve
(*args)¶ Bases:
OCC.Geom.Geom_Curve
 C is the basis curve, Offset is the distance between <self> and the basis curve at any point. V defines the fixed reference direction (offset direction). If P is a point on the basis curve and T the first derivative with non zero length at this point, the corresponding point on the offset curve is in the direction of the vectorproduct N = V ^ T where N is a unitary vector. Warnings : In this package the entities are not shared. The OffsetCurve is built with a copy of the curve C. So when C is modified the OffsetCurve is not modified //! Raised if the basis curve C is not at least C1. Warnings : No check is done to know if V^T != 0.0 at any point.
Parameters: Return type: 
BasisCurve
()¶  Returns the basis curve of this offset curve. Note: The basis curve can be an offset curve.
Return type: Handle_Geom_Curve

D0
()¶  Warning! this should not be called if the basis curve is not at least C1. Nevertheless if used on portion where the curve is C1, it is OK
Parameters: Return type:  Warning! this should not be called if the continuity of the basis curve is not C1. Nevertheless, it’s OK to use it on portion where the curve is C1
Parameters: Return type:

D1
()¶  Warning! this should not be called if the continuity of the basis curve is not C2. Nevertheless, it’s OK to use it on portion where the curve is C2
Parameters: Return type:  Warning! this should not be called if the continuity of the basis curve is not C1. Nevertheless, it’s OK to use it on portion where the curve is C1
Parameters: Return type:

D2
()¶  Warning! this should not be called if the continuity of the basis curve is not C3. Nevertheless, it’s OK to use it on portion where the curve is C3
Parameters: Return type:  Warning! this should not be called if the continuity of the basis curve is not C3. Nevertheless, it’s OK to use it on portion where the curve is C3
Parameters: Return type:

Direction
()¶  Returns the reference vector of this offset curve. Value and derivatives Warnings : The exception UndefinedValue or UndefinedDerivative is raised if it is not possible to compute a unique offset direction. If T is the first derivative with not null length and V the offset direction the relation T(U) ^ V != 0 must be satisfied to evaluate the offset curve. No check is done at the creation time and we suppose in this package that the offset curve is well defined.
Return type: gp_Dir

GetHandle
()¶

SetBasisCurve
()¶  Changes this offset curve by assigning C as the basis curve from which it is built. Exceptions Standard_ConstructionError if the curve C is not at least ‘C1’ continuous.
Parameters: C (Handle_Geom_Curve &) – Return type: None

SetDirection
()¶  Changes this offset curve by assigning V as the reference vector used to compute the offset direction.
Parameters: V (gp_Dir) – Return type: None

SetOffsetValue
()¶  Changes this offset curve by assigning D as the offset value.
Parameters: D (float) – Return type: None

Value
()¶  Warning! this should not be called if the basis curve is not at least C1. Nevertheless if used on portion where the curve is C1, it is OK
Parameters: Return type:

thisown
¶ The membership flag

class
Geom_OffsetSurface
(*args)¶ Bases:
OCC.Geom.Geom_Surface
 Constructs a surface offset from the basis surface S, where Offset is the distance between the offset surface and the basis surface at any point. A point on the offset surface is built by measuring the offset value along a normal vector at a point on S. This normal vector is given by the cross product D1u^D1v, where D1u and D1v are the vectors tangential to the basis surface in the u and v parametric directions at this point. The side of S on which the offset value is measured is indicated by this normal vector if Offset is positive, or is the inverse sense if Offset is negative. Warnings :  The offset surface is built with a copy of the surface S. Therefore, when S is modified the offset surface is not modified.  No check is made at the time of construction to detect points on S with multiple possible normal directions. Raised if S is not at least C1. Warnings : No check is done to verify that a unique normal direction is defined at any point of the basis surface S.
Parameters:  S (Handle_Geom_Surface &) –
 Offset (float) –
Return type: 
BasisSurface
()¶  Returns the basis surface of this offset surface. Note: The basis surface can be an offset surface.
Return type: Handle_Geom_Surface

D1
()¶  Raised if the continuity of the basis surface is not C2.
Parameters: Return type:  Raised if the continuity of the basis surface is not C2.
Parameters: Return type:

D2
()¶  —Purpose ; Raised if the continuity of the basis surface is not C3.
Parameters: Return type:  Raised if the continuity of the basis surface is not C3. The following private methods includes common part of local and global methods of derivative evaluations.
Parameters:  U (float) –
 V (float) –
 P (gp_Pnt) –
 Pbasis (gp_Pnt) –
 D1U (gp_Vec) –
 D1V (gp_Vec) –
 D2U (gp_Vec) –
 D2V (gp_Vec) –
 D2UV (gp_Vec) –
 D1Ubasis (gp_Vec) –
 D1Vbasis (gp_Vec) –
 D2Ubasis (gp_Vec) –
 D2Vbasis (gp_Vec) –
 D2UVbasis (gp_Vec) –
 D3Ubasis (gp_Vec) –
 D3Vbasis (gp_Vec) –
 D3UUVbasis (gp_Vec) –
 D3UVVbasis (gp_Vec) –
Return type:

GetHandle
()¶

LocalD0
()¶ Parameters: Return type:

LocalD1
()¶ Parameters: Return type:

LocalD2
()¶ Parameters: Return type:

LocalD3
()¶ Parameters: Return type:

LocalDN
()¶ Parameters: Return type:

SetBasisSurface
()¶  Raised if S is not at least C1. Warnings : No check is done to verify that a unique normal direction is defined at any point of the basis surface S. Exceptions Standard_ConstructionError if the surface S is not at least ‘C1’ continuous.
Parameters: S (Handle_Geom_Surface &) – Return type: None

SetOffsetValue
()¶  Changes this offset surface by assigning D as the offset value.
Parameters: D (float) – Return type: None

Surface
()¶  returns an equivalent surface of the offset surface when the basis surface is a canonic surface or a rectangular limited surface on canonic surface or if the offset is null.
Return type: Handle_Geom_Surface

UOsculatingSurface
()¶  if Standard_True, L is the local osculating surface along U at the point U,V. It means that DL/DU is collinear to DS/DU . If IsOpposite == Standard_True these vectors have opposite direction.
Parameters: Return type:

VOsculatingSurface
()¶  if Standard_True, L is the local osculating surface along V at the point U,V. It means that DL/DV is collinear to DS/DV . If IsOpposite == Standard_True these vectors have opposite direction.
Parameters: Return type:

Value
()¶  P (U, V) = Pbasis + Offset * Ndir where Ndir = D1Ubasis ^ D1Vbasis / D1Ubasis ^ D1Vbasis is the normal direction of the surface. If Ndir is undefined this method computes an approched normal direction using the following limited development : Ndir = N0 + DNdir/DU + DNdir/DV + Eps with Eps>0 which requires to compute the second derivatives on the basis surface. If the normal direction cannot be approximate for this order of derivation the exception UndefinedValue is raised. //! Raised if the continuity of the basis surface is not C1. Raised if the order of derivation required to compute the normal direction is greater than the second order.
Parameters: Return type:

thisown
¶ The membership flag

class
Geom_OsculatingSurface
(*args)¶ Bases:
object
Return type: None  detects if the surface has punctual U or V isoparametric curve along on the bounds of the surface relativly to the tolerance Tol and Builds the corresponding osculating surfaces.
Parameters:  BS (Handle_Geom_Surface &) –
 Tol (float) –
Return type: 
BasisSurface
()¶ Return type: Handle_Geom_Surface

UOscSurf
()¶  if Standard_True, L is the local osculating surface along U at the point U,V.
Parameters: Return type:

VOscSurf
()¶  if Standard_True, L is the local osculating surface along V at the point U,V.
Parameters: Return type:

thisown
¶ The membership flag

class
Geom_Parabola
(*args)¶ Bases:
OCC.Geom.Geom_Conic
 Creates a parabola from a non transient one.
Parameters: Prb (gp_Parab) – Return type: None  Creates a parabola with its local coordinate system ‘A2’ and it’s focal length ‘Focal’. The XDirection of A2 defines the axis of symmetry of the parabola. The YDirection of A2 is parallel to the directrix of the parabola. The Location point of A2 is the vertex of the parabola Raised if Focal < 0.0
Parameters: Return type:  D is the directrix of the parabola and F the focus point. The symmetry axis (XAxis) of the parabola is normal to the directrix and pass through the focus point F, but its location point is the vertex of the parabola. The YAxis of the parabola is parallel to D and its location point is the vertex of the parabola. The normal to the plane of the parabola is the cross product between the XAxis and the YAxis.
Parameters: Return type: 
Directrix
()¶  Computes the directrix of this parabola. This is a line normal to the axis of symmetry, in the plane of this parabola, located on the negative side of its axis of symmetry, at a distance from the apex equal to the focal length. The directrix is returned as an axis (gp_Ax1 object), where the origin is located on the ‘X Axis’ of this parabola.
Return type: gp_Ax1

Focal
()¶  Computes the focal distance of this parabola The focal distance is the distance between the apex and the focus of the parabola.
Return type: float

Focus
()¶  Computes the focus of this parabola. The focus is on the positive side of the ‘X Axis’ of the local coordinate system of the parabola.
Return type: gp_Pnt

GetHandle
()¶

Parab
()¶  Returns the non transient parabola from gp with the same geometric properties as <self>.
Return type: gp_Parab

Parameter
()¶  Computes the parameter of this parabola which is the distance between its focus and its directrix. This distance is twice the focal length. If P is the parameter of the parabola, the equation of the parabola in its local coordinate system is: Y**2 = 2.*P*X.
Return type: float

SetFocal
()¶  Assigns the value Focal to the focal distance of this parabola. Exceptions Standard_ConstructionError if Focal is negative.
Parameters: Focal (float) – Return type: None

SetParab
()¶  Converts the gp_Parab parabola Prb into this parabola.
Parameters: Prb (gp_Parab) – Return type: None

thisown
¶ The membership flag

class
Geom_Plane
(*args)¶ Bases:
OCC.Geom.Geom_ElementarySurface
 Creates a plane located in 3D space with an axis placement three axis. The ‘ZDirection’ of ‘A3’ is the direction normal to the plane. The ‘Location’ point of ‘A3’ is the origin of the plane. The ‘XDirection’ and ‘YDirection’ of ‘A3’ define the directions of the U isoparametric and V isoparametric curves.
Parameters: A3 (gp_Ax3) – Return type: None  Creates a plane from a non transient plane from package gp.
Parameters: Pl (gp_Pln) – Return type: None  P is the ‘Location’ point or origin of the plane. V is the direction normal to the plane.
Parameters: Return type:  Creates a plane from its cartesian equation : Ax + By + Cz + D = 0.0 //! Raised if Sqrt (A*A + B*B + C*C) <= Resolution from gp
Parameters: Return type: 
Coefficients
()¶  Computes the normalized coefficients of the plane’s cartesian equation : Ax + By + Cz + D = 0.0
Parameters:  A (float &) –
 B (float &) –
 C (float &) –
 D (float &) –
Return type:

GetHandle
()¶

SetPln
()¶  Set <self> so that <self> has the same geometric properties as Pl.
Parameters: Pl (gp_Pln) – Return type: None

thisown
¶ The membership flag

class
Geom_Point
(*args, **kwargs)¶ Bases:
OCC.Geom.Geom_Geometry

Coord
()¶  returns the Coordinates of <self>.
Parameters:  X (float &) –
 Y (float &) –
 Z (float &) –
Return type: void

Distance
()¶  Computes the distance between <self> and <Other>.
Parameters: Other (Handle_Geom_Point &) – Return type: float

GetHandle
()¶

SquareDistance
()¶  Computes the square distance between <self> and <Other>.
Parameters: Other (Handle_Geom_Point &) – Return type: float

thisown
¶ The membership flag


class
Geom_RectangularTrimmedSurface
(*args)¶ Bases:
OCC.Geom.Geom_BoundedSurface
 The U parametric direction of the surface is oriented from U1 to U2. The V parametric direction of the surface is oriented from V1 to V2. These two directions define the orientation of the surface (normal). If the surface is not periodic USense and VSense are not used for the construction. If the surface S is periodic in one direction USense and VSense give the available part of the surface. By default in this case the surface has the same orientation as the basis surface S. The returned surface is not closed and not periodic. ConstructionError Raised if S is not periodic in the UDirection and U1 or U2 are out of the bounds of S. S is not periodic in the VDirection and V1 or V2 are out of the bounds of S. U1 = U2 or V1 = V2
Parameters: Return type:  The basis surface S is only trim in one parametric direction. If UTrim = True the surface is trimmed in the U parametric direction else the surface is trimmed in the V parametric direction. In the considered parametric direction the resulting surface is oriented from Param1 to Param2. If S is periodic Sense gives the available part of the surface. By default the trimmed surface has the same orientation as the basis surface S in the considered parametric direction (Sense = True). If the basis surface S is closed or periodic in the parametric direction opposite to the trimming direction the trimmed surface has the same characteristics as the surface S in this direction. Warnings : In this package the entities are not shared. The RectangularTrimmedSurface is built with a copy of the surface S. So when S is modified the RectangularTrimmedSurface is not modified Raised if S is not periodic in the considered parametric direction and Param1 or Param2 are out of the bounds of S. Param1 = Param2
Parameters: Return type: 
BasisSurface
()¶  Returns the Basis surface of <self>.
Return type: Handle_Geom_Surface

GetHandle
()¶

SetTrim
()¶  Modifies this patch by changing the trim values applied to the original surface The u parametric direction of this patch is oriented from U1 to U2. The v parametric direction of this patch is oriented from V1 to V2. USense and VSense are used for the construction only if the surface is periodic in the corresponding parametric direction, and define the available part of the surface; by default in this case, this patch has the same orientation as the basis surface. Raised if The BasisSurface is not periodic in the UDirection and U1 or U2 are out of the bounds of the BasisSurface. The BasisSurface is not periodic in the VDirection and V1 or V2 are out of the bounds of the BasisSurface. U1 = U2 or V1 = V2
Parameters: Return type:  Modifies this patch by changing the trim values applied to the original surface The basis surface is trimmed only in one parametric direction: if UTrim is true, the surface is trimmed in the u parametric direction; if it is false, it is trimmed in the v parametric direction. In the ‘trimmed’ direction, this patch is oriented from Param1 to Param2. If the basis surface is periodic in the ‘trimmed’ direction, Sense defines its available part. By default in this case, this patch has the same orientation as the basis surface in this parametric direction. If the basis surface is closed or periodic in the other parametric direction (i.e. not the ‘trimmed’ direction), this patch has the same characteristics as the basis surface in that parametric direction. Raised if The BasisSurface is not periodic in the considered direction and Param1 or Param2 are out of the bounds of the BasisSurface. Param1 = Param2
Parameters: Return type:

thisown
¶ The membership flag

class
Geom_SequenceNodeOfSequenceOfBSplineSurface
(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNode
Parameters:  I (Handle_Geom_BSplineSurface &) –
 n (TCollection_SeqNodePtr &) –
 p (TCollection_SeqNodePtr &) –
Return type: 
GetHandle
()¶

Value
()¶ Return type: Handle_Geom_BSplineSurface

thisown
¶ The membership flag

class
Geom_SequenceOfBSplineSurface
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (Geom_SequenceOfBSplineSurface &) – Return type: None 
Append
()¶ Parameters:  T (Handle_Geom_BSplineSurface &) –
 S (Geom_SequenceOfBSplineSurface &) –
Return type: Return type:

Assign
()¶ Parameters: Other (Geom_SequenceOfBSplineSurface &) – Return type: Geom_SequenceOfBSplineSurface

ChangeValue
()¶ Parameters: Index (int) – Return type: Handle_Geom_BSplineSurface

First
()¶ Return type: Handle_Geom_BSplineSurface

InsertAfter
()¶ Parameters:  Index (int) –
 T (Handle_Geom_BSplineSurface &) –
 Index –
 S (Geom_SequenceOfBSplineSurface &) –
Return type: Return type:

InsertBefore
()¶ Parameters:  Index (int) –
 T (Handle_Geom_BSplineSurface &) –
 Index –
 S (Geom_SequenceOfBSplineSurface &) –
Return type: Return type:

Last
()¶ Return type: Handle_Geom_BSplineSurface

Prepend
()¶ Parameters:  T (Handle_Geom_BSplineSurface &) –
 S (Geom_SequenceOfBSplineSurface &) –
Return type: Return type:

Remove
()¶ Parameters: Return type: Return type:

Set
()¶ Parameters: Other (Geom_SequenceOfBSplineSurface &) – Return type: Geom_SequenceOfBSplineSurface

Value
()¶ Parameters: Index (int) – Return type: Handle_Geom_BSplineSurface

thisown
¶ The membership flag


class
Geom_SphericalSurface
(*args)¶ Bases:
OCC.Geom.Geom_ElementarySurface
 A3 is the local coordinate system of the surface. At the creation the parametrization of the surface is defined such as the normal Vector (N = D1U ^ D1V) is directed away from the center of the sphere. The direction of increasing parametric value V is defined by the rotation around the ‘YDirection’ of A2 in the trigonometric sense and the orientation of increasing parametric value U is defined by the rotation around the main direction of A2 in the trigonometric sense. Warnings : It is not forbidden to create a spherical surface with Radius = 0.0 Raised if Radius < 0.0.
Parameters: Return type:  Creates a SphericalSurface from a non persistent Sphere from package gp.
Parameters: S (gp_Sphere) – Return type: None 
Coefficients
()¶  Returns the coefficients of the implicit equation of the quadric in the absolute cartesian coordinates system : These coefficients are normalized. A1.X**2 + A2.Y**2 + A3.Z**2 + 2.(B1.X.Y + B2.X.Z + B3.Y.Z) + 2.(C1.X + C2.Y + C3.Z) + D = 0.0
Parameters:  A1 (float &) –
 A2 (float &) –
 A3 (float &) –
 B1 (float &) –
 B2 (float &) –
 B3 (float &) –
 C1 (float &) –
 C2 (float &) –
 C3 (float &) –
 D (float &) –
Return type:

GetHandle
()¶

Radius
()¶  Computes the coefficients of the implicit equation of this quadric in the absolute Cartesian coordinate system: A1.X**2 + A2.Y**2 + A3.Z**2 + 2.(B1.X.Y + B2.X.Z + B3.Y.Z) + 2.(C1.X + C2.Y + C3.Z) + D = 0.0 An implicit normalization is applied (i.e. A1 = A2 = 1. in the local coordinate system of this sphere).
Return type: float

SetRadius
()¶  Assigns the value R to the radius of this sphere. Exceptions Standard_ConstructionError if R is less than 0.0.
Parameters: R (float) – Return type: None

Sphere
()¶  Returns a non persistent sphere with the same geometric properties as <self>.
Return type: gp_Sphere

thisown
¶ The membership flag

class
Geom_Surface
(*args, **kwargs)¶ Bases:
OCC.Geom.Geom_Geometry

Bounds
()¶  Returns the parametric bounds U1, U2, V1 and V2 of this surface. If the surface is infinite, this function can return a value equal to Precision::Infinite: instead of Standard_Real::LastReal.
Parameters:  U1 (float &) –
 U2 (float &) –
 V1 (float &) –
 V2 (float &) –
Return type: void

Continuity
()¶  Returns the Global Continuity of the surface in direction U and V : C0 : only geometric continuity, C1 : continuity of the first derivative all along the surface, C2 : continuity of the second derivative all along the surface, C3 : continuity of the third derivative all along the surface, G1 : tangency continuity all along the surface, G2 : curvature continuity all along the surface, CN : the order of continuity is infinite. Example : If the surface is C1 in the V parametric direction and C2 in the U parametric direction Shape = C1.
Return type: GeomAbs_Shape

D0
()¶  Computes the point of parameter U,V on the surface. //! Raised only for an ‘OffsetSurface’ if it is not possible to compute the current point.
Parameters: Return type: void

D1
()¶  Computes the point P and the first derivatives in the directions U and V at this point. Raised if the continuity of the surface is not C1.
Parameters: Return type: void

D2
()¶  Computes the point P, the first and the second derivatives in the directions U and V at this point. Raised if the continuity of the surface is not C2.
Parameters: Return type: void

D3
()¶  Computes the point P, the first,the second and the third derivatives in the directions U and V at this point. Raised if the continuity of the surface is not C2.
Parameters: Return type: void

DN
()¶  —Purpose ; Computes the derivative of order Nu in the direction U and Nv in the direction V at the point P(U, V). //! Raised if the continuity of the surface is not CNu in the U direction or not CNv in the V direction. Raised if Nu + Nv < 1 or Nu < 0 or Nv < 0.
Parameters: Return type:

GetHandle
()¶

IsCNu
()¶  Returns the order of continuity of the surface in the U parametric direction. Raised if N < 0.
Parameters: N (int) – Return type: bool

IsCNv
()¶  Returns the order of continuity of the surface in the V parametric direction. Raised if N < 0.
Parameters: N (int) – Return type: bool

IsUClosed
()¶  Checks whether this surface is closed in the u parametric direction. Returns true if, in the u parametric direction: taking uFirst and uLast as the parametric bounds in the u parametric direction, for each parameter v, the distance between the points P(uFirst, v) and P(uLast, v) is less than or equal to gp::Resolution().
Return type: bool

IsUPeriodic
()¶  Checks if this surface is periodic in the u parametric direction. Returns true if:  this surface is closed in the u parametric direction, and  there is a constant T such that the distance between the points P (u, v) and P (u + T, v) (or the points P (u, v) and P (u, v + T)) is less than or equal to gp::Resolution(). Note: T is the parametric period in the u parametric direction.
Return type: bool

IsVClosed
()¶  Checks whether this surface is closed in the u parametric direction. Returns true if, in the v parametric direction: taking vFirst and vLast as the parametric bounds in the v parametric direction, for each parameter u, the distance between the points P(u, vFirst) and P(u, vLast) is less than or equal to gp::Resolution().
Return type: bool

IsVPeriodic
()¶  Checks if this surface is periodic in the v parametric direction. Returns true if:  this surface is closed in the v parametric direction, and  there is a constant T such that the distance between the points P (u, v) and P (u + T, v) (or the points P (u, v) and P (u, v + T)) is less than or equal to gp::Resolution(). Note: T is the parametric period in the v parametric direction.
Return type: bool

ParametricTransformation
()¶  Returns a 2d transformation used to find the new parameters of a point on the transformed surface. //! me>Transformed(T)>Value(U’,V’) //! is the same point as //! me>Value(U,V).Transformed(T) //! Where U’,V’ are obtained by transforming U,V with th 2d transformation returned by //! me>ParametricTransformation(T) //! This methods returns an identity transformation //! It can be redefined. For example on the Plane, Cylinder, Cone, Revolved and Extruded surfaces.
Parameters: T (gp_Trsf) – Return type: gp_GTrsf2d

TransformParameters
()¶  Computes the parameters on the transformed surface for the transform of the point of parameters U,V on <self>. //! me>Transformed(T)>Value(U’,V’) //! is the same point as //! me>Value(U,V).Transformed(T) //! Where U’,V’ are the new values of U,V after calling //! me>TranformParameters(U,V,T) //! This methods does not change <U> and <V> //! It can be redefined. For example on the Plane, Cylinder, Cone, Revolved and Extruded surfaces.
Parameters:  U (float &) –
 V (float &) –
 T (gp_Trsf) –
Return type: void

UIso
()¶  Computes the U isoparametric curve.
Parameters: U (float) – Return type: Handle_Geom_Curve

UPeriod
()¶  Returns the period of this surface in the u parametric direction. raises if the surface is not uperiodic.
Return type: float

UReverse
()¶  Reverses the U direction of parametrization of <self>. The bounds of the surface are not modified.
Return type: void

UReversed
()¶  Reverses the U direction of parametrization of <self>. The bounds of the surface are not modified. A copy of <self> is returned.
Return type: Handle_Geom_Surface

UReversedParameter
()¶  Returns the parameter on the Ureversed surface for the point of parameter U on <self>. //! me>UReversed()>Value(me>UReversedParameter(U),V) //! is the same point as //! me>Value(U,V)
Parameters: U (float) – Return type: float

VIso
()¶  Computes the V isoparametric curve.
Parameters: V (float) – Return type: Handle_Geom_Curve

VPeriod
()¶  Returns the period of this surface in the v parametric direction. raises if the surface is not vperiodic.
Return type: float

VReverse
()¶  Reverses the V direction of parametrization of <self>. The bounds of the surface are not modified.
Return type: void

VReversed
()¶  Reverses the V direction of parametrization of <self>. The bounds of the surface are not modified. A copy of <self> is returned.
Return type: Handle_Geom_Surface

VReversedParameter
()¶  Returns the parameter on the Vreversed surface for the point of parameter V on <self>. //! me>VReversed()>Value(U,me>VReversedParameter(V)) //! is the same point as //! me>Value(U,V)
Parameters: V (float) – Return type: float

Value
()¶  Computes the point of parameter U on the surface. //! It is implemented with D0 //! Raised only for an ‘OffsetSurface’ if it is not possible to compute the current point.
Parameters: Return type:

thisown
¶ The membership flag


class
Geom_SurfaceOfLinearExtrusion
(*args)¶ Bases:
OCC.Geom.Geom_SweptSurface
 V is the direction of extrusion. C is the extruded curve. The form of a SurfaceOfLinearExtrusion can be : . ruled surface (RuledForm), . a cylindrical surface if the extruded curve is a circle or a trimmed circle (CylindricalForm), . a plane surface if the extruded curve is a Line (PlanarForm). Warnings : Degenerated surface cases are not detected. For example if the curve C is a line and V is parallel to the direction of this line.
Parameters:  C (Handle_Geom_Curve &) –
 V (gp_Dir) –
Return type: 
GetHandle
()¶

LocalD0
()¶  The following functions evaluates the local derivatives on surface. Useful to manage discontinuities on the surface. if Side = 1 > P = S( U+,V ) if Side = 1 > P = S( U,V ) else P is betveen discontinuities can be evaluated using methods of global evaluations P = S( U ,V )
Parameters: Return type:

LocalD1
()¶ Parameters: Return type:

LocalD2
()¶ Parameters: Return type:

LocalD3
()¶ Parameters: Return type:

LocalDN
()¶ Parameters: Return type:

SetBasisCurve
()¶  Modifies this surface of linear extrusion by redefining its ‘basis curve’ (the ‘extruded curve’).
Parameters: C (Handle_Geom_Curve &) – Return type: None

SetDirection
()¶  Assigns V as the ‘direction of extrusion’ for this surface of linear extrusion.
Parameters: V (gp_Dir) – Return type: None

thisown
¶ The membership flag

class
Geom_SurfaceOfRevolution
(*args)¶ Bases:
OCC.Geom.Geom_SweptSurface
 C : is the meridian or the referenced curve. A1 is the axis of revolution. The form of a SurfaceOfRevolution can be : . a general revolution surface (RevolutionForm), . a conical surface if the meridian is a line or a trimmed line (ConicalForm), . a cylindrical surface if the meridian is a line or a trimmed line parallel to the revolution axis (CylindricalForm), . a planar surface if the meridian is a line perpendicular to the revolution axis of the surface (PlanarForm). . a spherical surface, . a toroidal surface, . a quadric surface. Warnings : It is not checked that the curve C is planar and that the surface axis is in the plane of the curve. It is not checked that the revolved curve C doesn’t selfintersects.
Parameters:  C (Handle_Geom_Curve &) –
 A1 (gp_Ax1) –
Return type: 
GetHandle
()¶

LocalD1
()¶ Parameters: Return type:

LocalD2
()¶ Parameters: Return type:

LocalD3
()¶ Parameters: Return type:

LocalDN
()¶ Parameters: Return type:

ReferencePlane
()¶  Computes the position of the reference plane of the surface defined by the basis curve and the symmetry axis. The location point is the location point of the revolution’s axis, the XDirection of the plane is given by the revolution’s axis and the orientation of the normal to the plane is given by the sense of revolution. //! Raised if the revolved curve is not planar or if the revolved curve and the symmetry axis are not in the same plane or if the maximum of distance between the axis and the revolved curve is lower or equal to Resolution from gp.
Return type: gp_Ax2

SetAxis
()¶  Changes the axis of revolution. Warnings : It is not checked that the axis is in the plane of the revolved curve.
Parameters: A1 (gp_Ax1) – Return type: None

SetBasisCurve
()¶  Changes the revolved curve of the surface. Warnings : It is not checked that the curve C is planar and that the surface axis is in the plane of the curve. It is not checked that the revolved curve C doesn’t selfintersects.
Parameters: C (Handle_Geom_Curve &) – Return type: None

SetDirection
()¶  Changes the direction of the revolution axis. Warnings : It is not checked that the axis is in the plane of the revolved curve.
Parameters: V (gp_Dir) – Return type: None

SetLocation
()¶  Changes the location point of the revolution axis. Warnings : It is not checked that the axis is in the plane of the revolved curve.
Parameters: P (gp_Pnt) – Return type: None

thisown
¶ The membership flag

class
Geom_SweptSurface
(*args, **kwargs)¶ Bases:
OCC.Geom.Geom_Surface

BasisCurve
()¶  Returns the referenced curve of the surface. For a surface of revolution it is the revolution curve, for a surface of linear extrusion it is the extruded curve.
Return type: Handle_Geom_Curve

Direction
()¶  Returns the reference direction of the swept surface. For a surface of revolution it is the direction of the revolution axis, for a surface of linear extrusion it is the direction of extrusion.
Return type: gp_Dir

GetHandle
()¶

thisown
¶ The membership flag


class
Geom_ToroidalSurface
(*args)¶ Bases:
OCC.Geom.Geom_ElementarySurface
 A3 is the local coordinate system of the surface. The orientation of increasing V parametric value is defined by the rotation around the main axis (ZAxis) in the trigonometric sense. The parametrization of the surface in the U direction is defined such as the normal Vector (N = D1U ^ D1V) is oriented towards the ‘outside region’ of the surface. Warnings : It is not forbidden to create a toroidal surface with MajorRadius = MinorRadius = 0.0 //! Raised if MinorRadius < 0.0 or if MajorRadius < 0.0
Parameters: Return type:  Creates a ToroidalSurface from a non transient Torus from package gp.
Parameters: T (gp_Torus) – Return type: None 
Coefficients
()¶  Returns the coefficients of the implicit equation of the surface in the absolute cartesian coordinate system : Coef(1) * X**4 + Coef(2) * Y**4 + Coef(3) * Z**4 + Coef(4) * X**3 * Y + Coef(5) * X**3 * Z + Coef(6) * Y**3 * X + Coef(7) * Y**3 * Z + Coef(8) * Z**3 * X + Coef(9) * Z**3 * Y + Coef(10) * X**2 * Y**2 + Coef(11) * X**2 * Z**2 + Coef(12) * Y**2 * Z**2 + Coef(13) * X**3 + Coef(14) * Y**3 + Coef(15) * Z**3 + Coef(16) * X**2 * Y + Coef(17) * X**2 * Z + Coef(18) * Y**2 * X + Coef(19) * Y**2 * Z + Coef(20) * Z**2 * X + Coef(21) * Z**2 * Y + Coef(22) * X**2 + Coef(23) * Y**2 + Coef(24) * Z**2 + Coef(25) * X * Y + Coef(26) * X * Z + Coef(27) * Y * Z + Coef(28) * X + Coef(29) * Y + Coef(30) * Z + Coef(31) = 0.0 Raised if the length of Coef is lower than 31.
Parameters: Coef (TColStd_Array1OfReal &) – Return type: None

GetHandle
()¶

SetMajorRadius
()¶  Modifies this torus by changing its major radius. Exceptions Standard_ConstructionError if:  MajorRadius is negative, or  MajorRadius  r is less than or equal to gp::Resolution(), where r is the minor radius of this torus.
Parameters: MajorRadius (float) – Return type: None

SetMinorRadius
()¶  Modifies this torus by changing its minor radius. Exceptions Standard_ConstructionError if:  MinorRadius is negative, or  R  MinorRadius is less than or equal to gp::Resolution(), where R is the major radius of this torus.
Parameters: MinorRadius (float) – Return type: None

SetTorus
()¶  Converts the gp_Torus torus T into this torus.
Parameters: T (gp_Torus) – Return type: None

Torus
()¶  Returns the non transient torus with the same geometric properties as <self>.
Return type: gp_Torus

thisown
¶ The membership flag

class
Geom_Transformation
(*args)¶ Bases:
OCC.MMgt.MMgt_TShared
 Creates an identity transformation.
Return type: None  Creates a transient copy of T.
Parameters: T (gp_Trsf) – Return type: None 
Copy
()¶  Creates a new object which is a copy of this transformation.
Return type: Handle_Geom_Transformation

Form
()¶  Returns the nature of this transformation as a value of the gp_TrsfForm enumeration.
Return type: gp_TrsfForm

GetHandle
()¶

Invert
()¶  Raised if the the transformation is singular. This means that the ScaleFactor is lower or equal to Resolution from package gp.
Return type: None

Inverted
()¶  Raised if the the transformation is singular. This means that the ScaleFactor is lower or equal to Resolution from package gp.
Return type: Handle_Geom_Transformation

IsNegative
()¶  Checks whether this transformation is an indirect transformation: returns true if the determinant of the matrix of the vectorial part of the transformation is less than 0.
Return type: bool

Multiplied
()¶  Computes the transformation composed with Other and <self>. <self> * Other. Returns a new transformation
Parameters: Other (Handle_Geom_Transformation &) – Return type: Handle_Geom_Transformation

Multiply
()¶  Computes the transformation composed with Other and <self> . <self> = <self> * Other.
Parameters: Other (Handle_Geom_Transformation &) – Return type: None

Power
()¶  Computes the following composition of transformations if N > 0 <self> * <self> * .......* <self>. if N = 0 Identity if N < 0 <self>.Invert() * .........* <self>.Invert() //! Raised if N < 0 and if the transformation is not inversible
Parameters: N (int) – Return type: None

Powered
()¶  Raised if N < 0 and if the transformation is not inversible
Parameters: N (int) – Return type: Handle_Geom_Transformation

PreMultiply
()¶  Computes the matrix of the transformation composed with <self> and Other. <self> = Other * <self>
Parameters: Other (Handle_Geom_Transformation &) – Return type: None

SetMirror
()¶  Makes the transformation into a symmetrical transformation with respect to a point P. P is the center of the symmetry.
Parameters: P (gp_Pnt) – Return type: None  Makes the transformation into a symmetrical transformation with respect to an axis A1. A1 is the center of the axial symmetry.
Parameters: A1 (gp_Ax1) – Return type: None  Makes the transformation into a symmetrical transformation with respect to a plane. The plane of the symmetry is defined with the axis placement A2. It is the plane (Location, XDirection, YDirection).
Parameters: A2 (gp_Ax2) – Return type: None

SetRotation
()¶  Makes the transformation into a rotation. A1 is the axis rotation and Ang is the angular value of the rotation in radians.
Parameters: Return type:

SetScale
()¶  Makes the transformation into a scale. P is the center of the scale and S is the scaling value.
Parameters: Return type:

SetTransformation
()¶  Makes a transformation allowing passage from the coordinate system ‘FromSystem1’ to the coordinate system ‘ToSystem2’. Example : In a C++ implementation : Real x1, y1, z1; // are the coordinates of a point in the // local system FromSystem1 Real x2, y2, z2; // are the coordinates of a point in the // local system ToSystem2 gp_Pnt P1 (x1, y1, z1) Geom_Transformation T; T.SetTransformation (FromSystem1, ToSystem2); gp_Pnt P2 = P1.Transformed (T); P2.Coord (x2, y2, z2);
Parameters: Return type:  Makes the transformation allowing passage from the basic coordinate system {P(0.,0.,0.), VX (1.,0.,0.), VY (0.,1.,0.), VZ (0., 0. ,1.) } to the local coordinate system defined with the Ax2 ToSystem. Same utilisation as the previous method. FromSystem1 is defaulted to the absolute coordinate system.
Parameters: ToSystem (gp_Ax3) – Return type: None

SetTranslation
()¶  Makes the transformation into a translation. V is the vector of the translation.
Parameters: V (gp_Vec) – Return type: None  Makes the transformation into a translation from the point P1 to the point P2.
Parameters: Return type:

SetTrsf
()¶  Converts the gp_Trsf transformation T into this transformation.
Parameters: T (gp_Trsf) – Return type: None

Transforms
()¶  Applies the transformation <self> to the triplet {X, Y, Z}.
Parameters:  X (float &) –
 Y (float &) –
 Z (float &) –
Return type:

Value
()¶  Returns the coefficients of the global matrix of tranformation. It is a 3 rows X 4 columns matrix. //! Raised if Row < 1 or Row > 3 or Col < 1 or Col > 4 //! Computes the reverse transformation.
Parameters: Return type:

thisown
¶ The membership flag

class
Geom_TrimmedCurve
(*args)¶ Bases:
OCC.Geom.Geom_BoundedCurve
 Constructs a trimmed curve from the basis curve C which is limited between parameter values U1 and U2. Note:  U1 can be greater or less than U2; in both cases, the returned curve is oriented from U1 to U2.  If the basis curve C is periodic, there is an ambiguity because two parts are available. In this case, the trimmed curve has the same orientation as the basis curve if Sense is true (default value) or the opposite orientation if Sense is false.  If the curve is closed but not periodic, it is not possible to keep the part of the curve which includes the junction point (except if the junction point is at the beginning or at the end of the trimmed curve). If you tried to do this, you could alter the fundamental characteristics of the basis curve, which are used, for example, to compute the derivatives of the trimmed curve. The rules for a closed curve are therefore the same as those for an open curve. Warning: The trimmed curve is built from a copy of curve C. Therefore, when C is modified, the trimmed curve is not modified.  If the basis curve is periodic, the bounds of the trimmed curve may be different from U1 and U2 if the parametric origin of the basis curve is within the arc of the trimmed curve. In this case, the modified parameter will be equal to U1 or U2 plus or minus the period. Exceptions Standard_ConstructionError if:  C is not periodic and U1 or U2 is outside the bounds of C, or  U1 is equal to U2.
Parameters: Return type: 
BasisCurve
()¶  Returns the basis curve. Warning This function does not return a constant reference. Consequently, any modification of the returned value directly modifies the trimmed curve.
Return type: Handle_Geom_Curve

GetHandle
()¶

SetTrim
()¶  Changes this trimmed curve, by redefining the parameter values U1 and U2 which limit its basis curve. Note: If the basis curve is periodic, the trimmed curve has the same orientation as the basis curve if Sense is true (default value) or the opposite orientation if Sense is false. Warning If the basis curve is periodic, the bounds of the trimmed curve may be different from U1 and U2 if the parametric origin of the basis curve is within the arc of the trimmed curve. In this case, the modified parameter will be equal to U1 or U2 plus or minus the period. Exceptions Standard_ConstructionError if:  the basis curve is not periodic, and either U1 or U2 are outside the bounds of the basis curve, or  U1 is equal to U2.
Parameters: Return type:

thisown
¶ The membership flag

class
Geom_Vector
(*args, **kwargs)¶ Bases:
OCC.Geom.Geom_Geometry

Angle
()¶  Computes the angular value, in radians, between this vector and vector Other. The result is a value between 0 and Pi. Exceptions gp_VectorWithNullMagnitude if:  the magnitude of this vector is less than or equal to gp::Resolution(), or  the magnitude of vector Other is less than or equal to gp::Resolution().
Parameters: Other (Handle_Geom_Vector &) – Return type: float

AngleWithRef
()¶  Computes the angular value, in radians, between this vector and vector Other. The result is a value between Pi and Pi. The vector VRef defines the positive sense of rotation: the angular value is positive if the cross product this ^ Other has the same orientation as VRef (in relation to the plane defined by this vector and vector Other). Otherwise, it is negative. Exceptions Standard_DomainError if this vector, vector Other and vector VRef are coplanar, except if this vector and vector Other are parallel. gp_VectorWithNullMagnitude if the magnitude of this vector, vector Other or vector VRef is less than or equal to gp::Resolution().
Parameters:  Other (Handle_Geom_Vector &) –
 VRef (Handle_Geom_Vector &) –
Return type:

Coord
()¶  Returns the coordinates X, Y and Z of this vector.
Parameters:  X (float &) –
 Y (float &) –
 Z (float &) –
Return type:

Cross
()¶  Computes the cross product between <self> and <Other>. //! Raised if <self> is a ‘Direction’ and if <self> and <Other> are parallel because it is not possible to build a ‘Direction’ with null length.
Parameters: Other (Handle_Geom_Vector &) – Return type: void

CrossCross
()¶  Computes the triple vector product <self> ^(V1 ^ V2). //! Raised if <self> is a ‘Direction’ and if V1 and V2 are parallel or <self> and (V1 ^ V2) are parallel
Parameters:  V1 (Handle_Geom_Vector &) –
 V2 (Handle_Geom_Vector &) –
Return type: void

CrossCrossed
()¶  Computes the triple vector product <self> ^(V1 ^ V2). //! Raised if <self> is a direction and if V1 and V2 are parallel or <self> and (V1 ^ V2) are parallel
Parameters:  V1 (Handle_Geom_Vector &) –
 V2 (Handle_Geom_Vector &) –
Return type:

Crossed
()¶  Computes the cross product between <self> and <Other>. A new direction is returned. //! Raised if <self> is a ‘Direction’ and if the two vectors are parallel because it is not possible to create a ‘Direction’ with null length.
Parameters: Other (Handle_Geom_Vector &) – Return type: Handle_Geom_Vector

Dot
()¶  Computes the scalar product of this vector and vector Other.
Parameters: Other (Handle_Geom_Vector &) – Return type: float

DotCross
()¶  Computes the triple scalar product. Returns me . (V1 ^ V2)
Parameters:  V1 (Handle_Geom_Vector &) –
 V2 (Handle_Geom_Vector &) –
Return type:

GetHandle
()¶

Reversed
()¶  Returns a copy of <self> reversed.
Return type: Handle_Geom_Vector

thisown
¶ The membership flag


class
Geom_VectorWithMagnitude
(*args)¶ Bases:
OCC.Geom.Geom_Vector
 Creates a transient copy of V.
Parameters: V (gp_Vec) – Return type: None  Creates a vector with three cartesian coordinates.
Parameters: Return type:  Creates a vector from the point P1 to the point P2. The magnitude of the vector is the distance between P1 and P2
Parameters: Return type: 
Added
()¶  Adds the vector Other to <self>.
Parameters: Other (Handle_Geom_Vector &) – Return type: Handle_Geom_VectorWithMagnitude

Divided
()¶  Divides <self> by a scalar. A new vector is returned.
Parameters: Scalar (float) – Return type: Handle_Geom_VectorWithMagnitude

GetHandle
()¶

Multiplied
()¶  Computes the product of the vector <self> by a scalar. A new vector is returned.
Parameters: Scalar (float) – Return type: Handle_Geom_VectorWithMagnitude

Multiply
()¶  Computes the product of the vector <self> by a scalar.
Parameters: Scalar (float) – Return type: None

Normalize
()¶  Normalizes <self>. //! Raised if the magnitude of the vector is lower or equal to Resolution from package gp.
Return type: None

Normalized
()¶  Returns a copy of <self> Normalized. //! Raised if the magnitude of the vector is lower or equal to Resolution from package gp.
Return type: Handle_Geom_VectorWithMagnitude

SetCoord
()¶  Assigns the values X, Y and Z to the coordinates of this vector.
Parameters: Return type:

Subtract
()¶  Subtracts the Vector Other to <self>.
Parameters: Other (Handle_Geom_Vector &) – Return type: None

Subtracted
()¶  Subtracts the vector Other to <self>. A new vector is returned.
Parameters: Other (Handle_Geom_Vector &) – Return type: Handle_Geom_VectorWithMagnitude

thisown
¶ The membership flag

class
Handle_Geom_Axis1Placement
(*args)¶ Bases:
OCC.Geom.Handle_Geom_AxisPlacement

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Axis2Placement
(*args)¶ Bases:
OCC.Geom.Handle_Geom_AxisPlacement

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_AxisPlacement
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Geometry

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_BSplineCurve
(*args)¶ Bases:
OCC.Geom.Handle_Geom_BoundedCurve

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_BSplineSurface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_BoundedSurface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_BezierCurve
(*args)¶ Bases:
OCC.Geom.Handle_Geom_BoundedCurve

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_BezierSurface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_BoundedSurface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_BoundedCurve
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Curve

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_BoundedSurface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Surface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_CartesianPoint
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Point

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Circle
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Conic

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Conic
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Curve

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_ConicalSurface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_ElementarySurface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Curve
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Geometry

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_CylindricalSurface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_ElementarySurface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Direction
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Vector

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_ElementarySurface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Surface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Ellipse
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Conic

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Geometry
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_HSequenceOfBSplineSurface
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Hyperbola
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Conic

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Line
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Curve

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_OffsetCurve
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Curve

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_OffsetSurface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Surface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Parabola
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Conic

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Plane
(*args)¶ Bases:
OCC.Geom.Handle_Geom_ElementarySurface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Point
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Geometry

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_RectangularTrimmedSurface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_BoundedSurface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_SphericalSurface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_ElementarySurface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Surface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Geometry

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_SurfaceOfLinearExtrusion
(*args)¶ Bases:
OCC.Geom.Handle_Geom_SweptSurface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_SurfaceOfRevolution
(*args)¶ Bases:
OCC.Geom.Handle_Geom_SweptSurface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_SweptSurface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Surface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_ToroidalSurface
(*args)¶ Bases:
OCC.Geom.Handle_Geom_ElementarySurface

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Transformation
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_TrimmedCurve
(*args)¶ Bases:
OCC.Geom.Handle_Geom_BoundedCurve

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_Vector
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Geometry

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

class
Handle_Geom_VectorWithMagnitude
(*args)¶ Bases:
OCC.Geom.Handle_Geom_Vector

static
DownCast
()¶

GetObject
()¶

IsNull
()¶

Nullify
()¶

thisown
¶ The membership flag

static

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

advance
()¶

copy
()¶

decr
()¶

distance
()¶

equal
()¶

incr
()¶

next
()¶

previous
()¶

thisown
¶ The membership flag

value
()¶


register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases