OCC.Convert module¶
- Purpose:The Convert package provides algorithms to convert the following into a BSpline curve or surface:- a bounded curve based on an elementary 2D curve (line, circle or conic) from the gp package,- a bounded surface based on an elementary surface (cylinder, cone, sphere or torus) from the gp package,- a series of adjacent 2D or 3D Bezier curves defined by their poles.These algorithms compute the data needed to define the resulting BSpline curve or surface.This elementary data (degrees, periodic characteristics, poles and weights, knots andmultiplicities) may then be used directly in an algorithm, or can be used to construct the curveor the surface by calling the appropriate constructor provided by the classesGeom2d_BSplineCurve, Geom_BSplineCurve or Geom_BSplineSurface.
-
class
Convert_CircleToBSplineCurve
(*args)¶ Bases:
OCC.Convert.Convert_ConicToBSplineCurve
- The equivalent B-spline curve has the same orientation as the circle C.
Parameters: - C (gp_Circ2d) –
- Parameterisation (Convert_ParameterisationType) – default value is Convert_TgtThetaOver2
Return type: - The circle C is limited between the parametric values U1, U2 in radians. U1 and U2 [0.0, 2*Pi] . The equivalent B-spline curve is oriented from U1 to U2 and has the same orientation as the circle C. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi
Parameters: Return type: -
thisown
¶ The membership flag
-
class
Convert_CompBezierCurves2dToBSplineCurve2d
(*args)¶ Bases:
object
- Constructs a framework for converting a sequence of adjacent non-rational Bezier curves into a BSpline curve. Knots will be created on the computed BSpline curve at each junction point of two consecutive Bezier curves. The degree of continuity of the BSpline curve will be increased at the junction point of two consecutive Bezier curves if their tangent vectors at this point are parallel. AngularTolerance (given in radians, and defaulted to 1.0 e-4) will be used to check the parallelism of the two tangent vectors. Use the following functions: - AddCurve to define in sequence the adjacent Bezier curves to be converted, - Perform to compute the data needed to build the BSpline curve, - and the available consultation functions to access the computed data. This data may be used to construct the BSpline curve.
Parameters: AngularTolerance (float) – default value is 1.0e-4 Return type: None -
AddCurve
()¶ - Adds the Bezier curve defined by the table of poles Poles, to the sequence (still contained in this framework) of adjacent Bezier curves to be converted into a BSpline curve. Only polynomial (i.e. non-rational) Bezier curves are converted using this framework. If this is not the first call to the function (i.e. if this framework still contains data in its sequence of Bezier curves), the degree of continuity of the BSpline curve will be increased at the time of computation at the first point of the added Bezier curve (i.e. the first point of the Poles table). This will be the case if the tangent vector of the curve at this point is parallel to the tangent vector at the end point of the preceding Bezier curve in the sequence of Bezier curves still contained in this framework. An angular tolerance given at the time of construction of this framework, will be used to check the parallelism of the two tangent vectors. This checking procedure, and all the relative computations will be performed by the function Perform. When the sequence of adjacent Bezier curves is complete, use the following functions: - Perform to compute the data needed to build the BSpline curve, - and the available consultation functions to access the computed data. This data may be used to construct the BSpline curve. Warning The sequence of Bezier curves treated by this framework is automatically initialized with the first Bezier curve when the function is first called. During subsequent use of this function, ensure that the first point of the added Bezier curve (i.e. the first point of the Poles table) is coincident with the last point of the sequence (i.e. the last point of the preceding Bezier curve in the sequence) of Bezier curves still contained in this framework. An error may occur at the time of computation if this condition is not satisfied. Particular care must be taken with respect to the above, as this condition is not checked either when defining the sequence of Bezier curves or at the time of computation.
Parameters: Poles (TColgp_Array1OfPnt2d) – Return type: None
-
Degree
()¶ - Returns the degree of the BSpline curve whose data is computed in this framework. Warning Take particular care not to use this function before the computation is performed (Perform function), as this condition is not checked and an error may therefore occur.
Return type: int
-
KnotsAndMults
()¶ - Loads the Knots table with the knots and the Mults table with the corresponding multiplicities of the BSpline curve whose data is computed in this framework. Warning - Do not use this function before the computation is performed (Perform function). - The length of the Knots and Mults arrays must be equal to the number of knots in the BSpline curve whose data is computed in this framework. Particular care must be taken with respect to the above as these conditions are not checked, and an error may occur.
Parameters: - Knots (TColStd_Array1OfReal &) –
- Mults (TColStd_Array1OfInteger &) –
Return type:
-
NbKnots
()¶ - Returns the number of knots of the BSpline curve whose data is computed in this framework. Warning Take particular care not to use this function before the computation is performed (Perform function), as this condition is not checked and an error may therefore occur.
Return type: int
-
NbPoles
()¶ - Returns the number of poles of the BSpline curve whose data is computed in this framework. Warning Take particular care not to use this function before the computation is performed (Perform function), as this condition is not checked and an error may therefore occur.
Return type: int
-
Perform
()¶ - Computes all the data needed to build a BSpline curve equivalent to the sequence of adjacent Bezier curves still contained in this framework. A knot is inserted on the computed BSpline curve at the junction point of two consecutive Bezier curves. The degree of continuity of the BSpline curve will be increased at the junction point of two consecutive Bezier curves if their tangent vectors at this point are parallel. An angular tolerance given at the time of construction of this framework is used to check the parallelism of the two tangent vectors. Use the available consultation functions to access the computed data. This data may then be used to construct the BSpline curve. Warning Ensure that the curves in the sequence of Bezier curves contained in this framework are adjacent. An error may occur at the time of computation if this condition is not satisfied. Particular care must be taken with respect to the above as this condition is not checked, either when defining the Bezier curve sequence or at the time of computation.
Return type: None
-
Poles
()¶ - Loads the Poles table with the poles of the BSpline curve whose data is computed in this framework. Warning - Do not use this function before the computation is performed (Perform function). - The length of the Poles array must be equal to the number of poles of the BSpline curve whose data is computed in this framework. Particular care must be taken with respect to the above, as these conditions are not checked, and an error may occur.
Parameters: Poles (TColgp_Array1OfPnt2d) – Return type: None
-
thisown
¶ The membership flag
-
class
Convert_CompBezierCurvesToBSplineCurve
(*args)¶ Bases:
object
- Constructs a framework for converting a sequence of adjacent non-rational Bezier curves into a BSpline curve. Knots will be created on the computed BSpline curve at each junction point of two consecutive Bezier curves. The degree of continuity of the BSpline curve will be increased at the junction point of two consecutive Bezier curves if their tangent vectors at this point are parallel. AngularTolerance (given in radians, and defaulted to 1.0 e-4) will be used to check the parallelism of the two tangent vectors. Use the following functions: - AddCurve to define in sequence the adjacent Bezier curves to be converted, - Perform to compute the data needed to build the BSpline curve, - and the available consultation functions to access the computed data. This data may be used to construct the BSpline curve.
Parameters: AngularTolerance (float) – default value is 1.0e-4 Return type: None -
AddCurve
()¶ - Adds the Bezier curve defined by the table of poles Poles, to the sequence (still contained in this framework) of adjacent Bezier curves to be converted into a BSpline curve. Only polynomial (i.e. non-rational) Bezier curves are converted using this framework. If this is not the first call to the function (i.e. if this framework still contains data in its Bezier curve sequence), the degree of continuity of the BSpline curve will be increased at the time of computation at the first point of the added Bezier curve (i.e. the first point of the Poles table). This will be the case if the tangent vector of the curve at this point is parallel to the tangent vector at the end point of the preceding Bezier curve in the Bezier curve sequence still contained in this framework. An angular tolerance given at the time of construction of this framework will be used to check the parallelism of the two tangent vectors. This checking procedure and all related computations will be performed by the Perform function. When the adjacent Bezier curve sequence is complete, use the following functions: - Perform to compute the data needed to build the BSpline curve, - and the available consultation functions to access the computed data. This data may be used to construct the BSpline curve. Warning The Bezier curve sequence treated by this framework is automatically initialized with the first Bezier curve when the function is first called. During subsequent use of this function, ensure that the first point of the added Bezier curve (i.e. the first point of the Poles table) is coincident with the last point of the Bezier curve sequence (i.e. the last point of the preceding Bezier curve in the sequence) still contained in this framework. An error may occur at the time of computation if this condition is not satisfied. Particular care must be taken with respect to the above, as this condition is not checked either when defining the Bezier curve sequence or at the time of computation.
Parameters: Poles (TColgp_Array1OfPnt) – Return type: None
-
Degree
()¶ - Returns the degree of the BSpline curve whose data is computed in this framework. Warning Take particular care not to use this function before the computation is performed (Perform function), as this condition is not checked and an error may therefore occur.
Return type: int
-
KnotsAndMults
()¶ - loads the Knots table with the knots, - and loads the Mults table with the corresponding multiplicities of the BSpline curve whose data is computed in this framework. Warning - Do not use this function before the computation is performed (Perform function). - The length of the Knots and Mults arrays must be equal to the number of knots in the BSpline curve whose data is computed in this framework. Particular care must be taken with respect to the above as these conditions are not checked, and an error may occur.
Parameters: - Knots (TColStd_Array1OfReal &) –
- Mults (TColStd_Array1OfInteger &) –
Return type:
-
NbKnots
()¶ - Returns the number of knots of the BSpline curve whose data is computed in this framework. Warning Take particular care not to use this function before the computation is performed (Perform function), as this condition is not checked and an error may therefore occur.
Return type: int
-
NbPoles
()¶ - Returns the number of poles of the BSpline curve whose data is computed in this framework. Warning Take particular care not to use this function before the computation is performed (Perform function), as this condition is not checked and an error may therefore occur.
Return type: int
-
Perform
()¶ - Computes all the data needed to build a BSpline curve equivalent to the adjacent Bezier curve sequence still contained in this framework. A knot is inserted on the computed BSpline curve at the junction point of two consecutive Bezier curves. The degree of continuity of the BSpline curve will be increased at the junction point of two consecutive Bezier curves if their tangent vectors at this point are parallel. An angular tolerance given at the time of construction of this framework is used to check the parallelism of the two tangent vectors. Use the available consultation functions to access the computed data. This data may then be used to construct the BSpline curve. Warning Make sure that the curves in the Bezier curve sequence contained in this framework are adjacent. An error may occur at the time of computation if this condition is not satisfied. Particular care must be taken with respect to the above as this condition is not checked, either when defining the Bezier curve sequence or at the time of computation.
Return type: None
-
Poles
()¶ - Loads the Poles table with the poles of the BSpline curve whose data is computed in this framework. Warning - Do not use this function before the computation is performed (Perform function). - The length of the Poles array must be equal to the number of poles of the BSpline curve whose data is computed in this framework. Particular care must be taken with respect to the above, as these conditions are not checked, and an error may occur.
Parameters: Poles (TColgp_Array1OfPnt) – Return type: None
-
thisown
¶ The membership flag
-
class
Convert_CompPolynomialToPoles
(*args)¶ Bases:
object
- Warning! Continuity can be at MOST the maximum degree of the polynomial functions TrueIntervals : this is the true parameterisation for the composite curve that is : the curve has myContinuity if the nth curve is parameterized between myTrueIntervals(n) and myTrueIntervals(n+1) //! Coefficients have to be the implicit ‘c form’: Coefficients[Numcurves][MaxDegree+1][Dimension] //! Warning! The NumberOfCoefficient of an polynome is his degree + 1 Example: To convert the linear function f(x) = 2*x + 1 on the domaine [2,5] to BSpline with the bound [-1,1]. Arguments are : NumCurves = 1; Continuity = 1; Dimension = 1; MaxDegree = 1; NumCoeffPerCurve [1] = {2}; Coefficients[2] = {1, 2}; PolynomialIntervals[1,2] = {{2,5}} TrueIntervals[2] = {-1, 1}
Parameters: Return type: - To Convert sevral span with different order of Continuity. Warning: The Length of Continuity have to be NumCurves-1
Parameters: Return type: - To Convert only one span.
Parameters: Return type: -
Knots
()¶ - Knots of the n-dimensional Bspline
Parameters: K (Handle_TColStd_HArray1OfReal &) – Return type: None
-
Multiplicities
()¶ - Multiplicities of the knots in the BSpline
Parameters: M (Handle_TColStd_HArray1OfInteger &) – Return type: None
-
Poles
()¶ - returns the poles of the n-dimensional BSpline in the following format : [1..NumPoles][1..Dimension]
Parameters: Poles (Handle_TColStd_HArray2OfReal &) – Return type: None
-
thisown
¶ The membership flag
-
class
Convert_ConeToBSplineSurface
(*args)¶ Bases:
OCC.Convert.Convert_ElementarySurfaceToBSplineSurface
- The equivalent B-spline surface as the same orientation as the Cone in the U and V parametric directions. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi Raised if V1 = V2.
Parameters: Return type: - The equivalent B-spline surface as the same orientation as the Cone in the U and V parametric directions. //! Raised if V1 = V2.
Parameters: Return type: -
thisown
¶ The membership flag
-
class
Convert_ConicToBSplineCurve
(*args, **kwargs)¶ Bases:
object
-
BuildCosAndSin
()¶ Parameters: - Parametrisation (Convert_ParameterisationType) –
- CosNumerator (Handle_TColStd_HArray1OfReal &) –
- SinNumerator (Handle_TColStd_HArray1OfReal &) –
- Denominator (Handle_TColStd_HArray1OfReal &) –
- Degree (int &) –
- Knots (Handle_TColStd_HArray1OfReal &) –
- Mults (Handle_TColStd_HArray1OfInteger &) –
- Parametrisation –
- UFirst (float) –
- ULast (float) –
- CosNumerator –
- SinNumerator –
- Denominator –
- Degree –
- Knots –
- Mults –
Return type: Return type:
-
Degree
()¶ - Returns the degree of the BSpline curve whose data is computed in this framework.
Return type: int
-
IsPeriodic
()¶ - Returns true if the BSpline curve whose data is computed in this framework is periodic.
Return type: bool
-
Knot
()¶ - Returns the knot of index Index to the knots table of the BSpline curve whose data is computed in this framework. Exceptions Standard_OutOfRange if Index is outside the bounds of the knots table of the BSpline curve whose data is computed in this framework.
Parameters: Index (int) – Return type: float
-
Multiplicity
()¶ - Returns the multiplicity of the knot of index Index to the knots table of the BSpline curve whose data is computed in this framework. Exceptions Standard_OutOfRange if Index is outside the bounds of the knots table of the BSpline curve whose data is computed in this framework.
Parameters: Index (int) – Return type: int
-
NbKnots
()¶ - Returns the number of knots of the BSpline curve whose data is computed in this framework.
Return type: int
-
NbPoles
()¶ - Returns the number of poles of the BSpline curve whose data is computed in this framework.
Return type: int
-
Pole
()¶ - Returns the pole of index Index to the poles table of the BSpline curve whose data is computed in this framework. Exceptions Standard_OutOfRange if Index is outside the bounds of the poles table of the BSpline curve whose data is computed in this framework.
Parameters: Index (int) – Return type: gp_Pnt2d
-
Weight
()¶ - Returns the weight of the pole of index Index to the poles table of the BSpline curve whose data is computed in this framework. Exceptions Standard_OutOfRange if Index is outside the bounds of the poles table of the BSpline curve whose data is computed in this framework.
Parameters: Index (int) – Return type: float
-
thisown
¶ The membership flag
-
-
class
Convert_CylinderToBSplineSurface
(*args)¶ Bases:
OCC.Convert.Convert_ElementarySurfaceToBSplineSurface
- The equivalent B-splineSurface as the same orientation as the cylinder in the U and V parametric directions. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi Raised if V1 = V2.
Parameters: - Cyl (gp_Cylinder) –
- U1 (float) –
- U2 (float) –
- V1 (float) –
- V2 (float) –
Return type: - The equivalent B-splineSurface as the same orientation as the cylinder in the U and V parametric directions. //! Raised if V1 = V2.
Parameters: - Cyl (gp_Cylinder) –
- V1 (float) –
- V2 (float) –
Return type: -
thisown
¶ The membership flag
-
class
Convert_ElementarySurfaceToBSplineSurface
(*args, **kwargs)¶ Bases:
object
-
IsVPeriodic
()¶ - Returns true if the BSpline surface whose data is computed in this framework is periodic in the u or v parametric direction.
Return type: bool
-
NbVKnots
()¶ - Returns the number of knots for the u or v parametric direction of the BSpline surface whose data is computed in this framework .
Return type: int
-
NbVPoles
()¶ - Returns the number of poles for the u or v parametric direction of the BSpline surface whose data is computed in this framework.
Return type: int
-
Pole
()¶ - Returns the pole of index (UIndex,VIndex) to the poles table of the BSpline surface whose data is computed in this framework. Exceptions Standard_OutOfRange if, for the BSpline surface whose data is computed in this framework: - UIndex is outside the bounds of the poles table in the u parametric direction, or - VIndex is outside the bounds of the poles table in the v parametric direction.
Parameters: Return type:
-
UKnot
()¶ - Returns the U-knot of range UIndex. Raised if UIndex < 1 or UIndex > NbUKnots.
Parameters: UIndex (int) – Return type: float
-
UMultiplicity
()¶ - Returns the multiplicity of the U-knot of range UIndex. Raised if UIndex < 1 or UIndex > NbUKnots.
Parameters: UIndex (int) – Return type: int
-
VDegree
()¶ - Returns the degree for the u or v parametric direction of the BSpline surface whose data is computed in this framework.
Return type: int
-
VKnot
()¶ - Returns the V-knot of range VIndex. Raised if VIndex < 1 or VIndex > NbVKnots.
Parameters: UIndex (int) – Return type: float
-
VMultiplicity
()¶ - Returns the multiplicity of the V-knot of range VIndex. Raised if VIndex < 1 or VIndex > NbVKnots.
Parameters: VIndex (int) – Return type: int
-
Weight
()¶ - Returns the weight of the pole of index (UIndex,VIndex) to the poles table of the BSpline surface whose data is computed in this framework. Exceptions Standard_OutOfRange if, for the BSpline surface whose data is computed in this framework: - UIndex is outside the bounds of the poles table in the u parametric direction, or - VIndex is outside the bounds of the poles table in the v parametric direction.
Parameters: Return type:
-
thisown
¶ The membership flag
-
-
class
Convert_EllipseToBSplineCurve
(*args)¶ Bases:
OCC.Convert.Convert_ConicToBSplineCurve
- The equivalent B-spline curve has the same orientation as the ellipse E.
Parameters: - E (gp_Elips2d) –
- Parameterisation (Convert_ParameterisationType) – default value is Convert_TgtThetaOver2
Return type: - The ellipse E is limited between the parametric values U1, U2. The equivalent B-spline curve is oriented from U1 to U2 and has the same orientation as E. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi
Parameters: - E (gp_Elips2d) –
- U1 (float) –
- U2 (float) –
- Parameterisation (Convert_ParameterisationType) – default value is Convert_TgtThetaOver2
Return type: -
thisown
¶ The membership flag
-
class
Convert_GridPolynomialToPoles
(*args)¶ Bases:
object
- To only one polynomial Surface. The Length of <PolynomialUIntervals> and <PolynomialVIntervals> have to be 2. This values defined the parametric domain of the Polynomial Equation. //! Coefficients : The <Coefficients> have to be formated than an ‘C array’ [MaxUDegree+1] [MaxVDegree+1] [3]
Parameters: Return type: - To one grid of polynomial Surface. Warning! Continuity in each parametric direction can be at MOST the maximum degree of the polynomial functions. //! <TrueUIntervals>, <TrueVIntervals> : this is the true parameterisation for the composite surface //! Coefficients : The Coefficients have to be formated than an ‘C array’ [NbVSurfaces] [NBUSurfaces] [MaxUDegree+1] [MaxVDegree+1] [3] raises DomainError if <NumCoeffPerSurface> is not a [1, NbVSurfaces*NbUSurfaces, 1,2] array. if <Coefficients> is not a
Parameters: - NbUSurfaces (int) –
- NBVSurfaces (int) –
- UContinuity (int) –
- VContinuity (int) –
- MaxUDegree (int) –
- MaxVDegree (int) –
- NumCoeffPerSurface (Handle_TColStd_HArray2OfInteger &) –
- Coefficients (Handle_TColStd_HArray1OfReal &) –
- PolynomialUIntervals (Handle_TColStd_HArray1OfReal &) –
- PolynomialVIntervals (Handle_TColStd_HArray1OfReal &) –
- TrueUIntervals (Handle_TColStd_HArray1OfReal &) –
- TrueVIntervals (Handle_TColStd_HArray1OfReal &) –
Return type: -
Perform
()¶ Parameters: - UContinuity (int) –
- VContinuity (int) –
- MaxUDegree (int) –
- MaxVDegree (int) –
- NumCoeffPerSurface (Handle_TColStd_HArray2OfInteger &) –
- Coefficients (Handle_TColStd_HArray1OfReal &) –
- PolynomialUIntervals (Handle_TColStd_HArray1OfReal &) –
- PolynomialVIntervals (Handle_TColStd_HArray1OfReal &) –
- TrueUIntervals (Handle_TColStd_HArray1OfReal &) –
- TrueVIntervals (Handle_TColStd_HArray1OfReal &) –
Return type:
-
Poles
()¶ - returns the poles of the BSpline Surface
Return type: Handle_TColgp_HArray2OfPnt
-
UKnots
()¶ - Knots in the U direction
Return type: Handle_TColStd_HArray1OfReal
-
UMultiplicities
()¶ - Multiplicities of the knots in the U direction
Return type: Handle_TColStd_HArray1OfInteger
-
VKnots
()¶ - Knots in the V direction
Return type: Handle_TColStd_HArray1OfReal
-
VMultiplicities
()¶ - Multiplicities of the knots in the V direction
Return type: Handle_TColStd_HArray1OfInteger
-
thisown
¶ The membership flag
-
class
Convert_HyperbolaToBSplineCurve
(*args)¶ Bases:
OCC.Convert.Convert_ConicToBSplineCurve
- The hyperbola H is limited between the parametric values U1, U2 and the equivalent B-spline curve has the same orientation as the hyperbola.
Parameters: Return type: -
thisown
¶ The membership flag
-
class
Convert_ParabolaToBSplineCurve
(*args)¶ Bases:
OCC.Convert.Convert_ConicToBSplineCurve
- The parabola Prb is limited between the parametric values U1, U2 and the equivalent B-spline curve as the same orientation as the parabola Prb.
Parameters: - Prb (gp_Parab2d) –
- U1 (float) –
- U2 (float) –
Return type: -
thisown
¶ The membership flag
-
class
Convert_SequenceNodeOfSequenceOfArray1OfPoles
(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNode
Parameters: - I (Handle_TColgp_HArray1OfPnt) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: Handle_TColgp_HArray1OfPnt
-
thisown
¶ The membership flag
-
class
Convert_SequenceOfArray1OfPoles
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (Convert_SequenceOfArray1OfPoles &) – Return type: None -
Append
()¶ Parameters: - T (Handle_TColgp_HArray1OfPnt) –
- S (Convert_SequenceOfArray1OfPoles &) –
Return type: Return type:
-
Assign
()¶ Parameters: Other (Convert_SequenceOfArray1OfPoles &) – Return type: Convert_SequenceOfArray1OfPoles
-
ChangeValue
()¶ Parameters: Index (int) – Return type: Handle_TColgp_HArray1OfPnt
-
First
()¶ Return type: Handle_TColgp_HArray1OfPnt
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (Handle_TColgp_HArray1OfPnt) –
- Index –
- S (Convert_SequenceOfArray1OfPoles &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (Handle_TColgp_HArray1OfPnt) –
- Index –
- S (Convert_SequenceOfArray1OfPoles &) –
Return type: Return type:
-
Last
()¶ Return type: Handle_TColgp_HArray1OfPnt
-
Prepend
()¶ Parameters: - T (Handle_TColgp_HArray1OfPnt) –
- S (Convert_SequenceOfArray1OfPoles &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (Convert_SequenceOfArray1OfPoles &) – Return type: Convert_SequenceOfArray1OfPoles
-
SetValue
()¶ Parameters: - Index (int) –
- I (Handle_TColgp_HArray1OfPnt) –
Return type:
-
Value
()¶ Parameters: Index (int) – Return type: Handle_TColgp_HArray1OfPnt
-
thisown
¶ The membership flag
-
-
class
Convert_SphereToBSplineSurface
(*args)¶ Bases:
OCC.Convert.Convert_ElementarySurfaceToBSplineSurface
- The equivalent B-spline surface as the same orientation as the sphere in the U and V parametric directions. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi Raised if V1 = V2.
Parameters: Return type: - The equivalent B-spline surface as the same orientation as the sphere in the U and V parametric directions. //! Raised if UTrim = True and Param1 = Param2 or Param1 = Param2 + 2.0 * Pi Raised if UTrim = False and Param1 = Param2
Parameters: Return type: - The equivalent B-spline surface as the same orientation as the sphere in the U and V parametric directions.
Parameters: Sph (gp_Sphere) – Return type: None -
thisown
¶ The membership flag
-
class
Convert_TorusToBSplineSurface
(*args)¶ Bases:
OCC.Convert.Convert_ElementarySurfaceToBSplineSurface
- The equivalent B-spline surface as the same orientation as the torus in the U and V parametric directions. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi Raised if V1 = V2 or V1 = V2 + 2.0 * Pi
Parameters: Return type: - The equivalent B-spline surface as the same orientation as the torus in the U and V parametric directions. //! Raised if Param1 = Param2 or Param1 = Param2 + 2.0 * Pi
Parameters: Return type: - The equivalent B-spline surface as the same orientation as the torus in the U and V parametric directions.
Parameters: T (gp_Torus) – Return type: None -
thisown
¶ The membership flag
-
class
Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_SeqNode
-
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
()¶
-
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases