OCC.Core.Convert module¶
Convert module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_convert.html
-
class
Convert_CircleToBSplineCurve
(*args)¶ Bases:
OCC.Core.Convert.Convert_ConicToBSplineCurve
- The equivalent B-spline curve has the same orientation as the circle C.
- param C
- type C
gp_Circ2d
- param Parameterisation
default value is Convert_TgtThetaOver2
- type Parameterisation
Convert_ParameterisationType
- rtype
None* 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
- param C
- type C
gp_Circ2d
- param U1
- type U1
float
- param U2
- type U2
float
- param Parameterisation
default value is Convert_TgtThetaOver2
- type Parameterisation
Convert_ParameterisationType
- rtype
None
-
property
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.
- param AngularTolerance
default value is 1.0e-4
- type AngularTolerance
float
- rtype
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.
- param Poles
- type Poles
TColgp_Array1OfPnt2d
- rtype
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.
- rtype
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.
- param Knots
- type Knots
TColStd_Array1OfReal
- param Mults
- type Mults
TColStd_Array1OfInteger
- rtype
None
-
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.
- rtype
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.
- rtype
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.
- rtype
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.
- param Poles
- type Poles
TColgp_Array1OfPnt2d
- rtype
None
-
property
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.
- param AngularTolerance
default value is 1.0e-4
- type AngularTolerance
float
- rtype
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.
- param Poles
- type Poles
TColgp_Array1OfPnt
- rtype
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.
- rtype
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.
- param Knots
- type Knots
TColStd_Array1OfReal
- param Mults
- type Mults
TColStd_Array1OfInteger
- rtype
None
-
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.
- rtype
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.
- rtype
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.
- rtype
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.
- param Poles
- type Poles
TColgp_Array1OfPnt
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Convert_CompPolynomialToPoles
(*args)¶ Bases:
object
- Warning! Continuity can be at MOST the maximum degree of the polynomial functions TrueIntervalsthis is the true parameterisation for the composite curve that isthe 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 areNumCurves = 1; Continuity = 1; Dimension = 1; MaxDegree = 1; NumCoeffPerCurve [1] = {2}; Coefficients[2] = {1, 2}; PolynomialIntervals[1,2] = {{2,5}} TrueIntervals[2] = {-1, 1}
- param NumCurves
- type NumCurves
int
- param Continuity
- type Continuity
int
- param Dimension
- type Dimension
int
- param MaxDegree
- type MaxDegree
int
- param NumCoeffPerCurve
- type NumCoeffPerCurve
TColStd_HArray1OfInteger
- param Coefficients
- type Coefficients
TColStd_HArray1OfReal
- param PolynomialIntervals
- type PolynomialIntervals
TColStd_HArray2OfReal
- param TrueIntervals
- type TrueIntervals
TColStd_HArray1OfReal
- rtype
None* To Convert sevral span with different order of Continuity. Warning: The Length of Continuity have to be NumCurves-1
- param NumCurves
- type NumCurves
int
- param Dimension
- type Dimension
int
- param MaxDegree
- type MaxDegree
int
- param Continuity
- type Continuity
TColStd_Array1OfInteger
- param NumCoeffPerCurve
- type NumCoeffPerCurve
TColStd_Array1OfInteger
- param Coefficients
- type Coefficients
TColStd_Array1OfReal
- param PolynomialIntervals
- type PolynomialIntervals
TColStd_Array2OfReal
- param TrueIntervals
- type TrueIntervals
TColStd_Array1OfReal
- rtype
None* To Convert only one span.
- param Dimension
- type Dimension
int
- param MaxDegree
- type MaxDegree
int
- param Degree
- type Degree
int
- param Coefficients
- type Coefficients
TColStd_Array1OfReal
- param PolynomialIntervals
- type PolynomialIntervals
TColStd_Array1OfReal
- param TrueIntervals
- type TrueIntervals
TColStd_Array1OfReal
- rtype
None
-
Knots
()¶ - Knots of the n-dimensional Bspline
- param K
- type K
TColStd_HArray1OfReal
- rtype
None
-
Multiplicities
()¶ - Multiplicities of the knots in the BSpline
- param M
- type M
TColStd_HArray1OfInteger
- rtype
None
-
NbKnots
()¶ - Degree of the n-dimensional Bspline
- rtype
int
-
NbPoles
()¶ - number of poles of the n-dimensional BSpline
- rtype
int
-
Poles
()¶ - returns the poles of the n-dimensional BSpline in the following format[1..NumPoles][1..Dimension]
- param Poles
- type Poles
TColStd_HArray2OfReal
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Convert_ConeToBSplineSurface
(*args)¶ Bases:
OCC.Core.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.
- param C
- type C
gp_Cone
- param U1
- type U1
float
- param U2
- type U2
float
- param V1
- type V1
float
- param V2
- type V2
float
- rtype
None* The equivalent B-spline surface as the same orientation as the Cone in the U and V parametric directions. //! Raised if V1 = V2.
- param C
- type C
gp_Cone
- param V1
- type V1
float
- param V2
- type V2
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Convert_ConicToBSplineCurve
(*args, **kwargs)¶ Bases:
object
-
BuildCosAndSin
()¶ - Parameters
Parametrisation –
- type Parametrisation
Convert_ParameterisationType
- param CosNumerator
- type CosNumerator
TColStd_HArray1OfReal
- param SinNumerator
- type SinNumerator
TColStd_HArray1OfReal
- param Denominator
- type Denominator
TColStd_HArray1OfReal
- param Degree
- type Degree
int
- param Knots
- type Knots
TColStd_HArray1OfReal
- param Mults
- type Mults
TColStd_HArray1OfInteger
- rtype
None:param Parametrisation:
- type Parametrisation
Convert_ParameterisationType
- param UFirst
- type UFirst
float
- param ULast
- type ULast
float
- param CosNumerator
- type CosNumerator
TColStd_HArray1OfReal
- param SinNumerator
- type SinNumerator
TColStd_HArray1OfReal
- param Denominator
- type Denominator
TColStd_HArray1OfReal
- param Degree
- type Degree
int
- param Knots
- type Knots
TColStd_HArray1OfReal
- param Mults
- type Mults
TColStd_HArray1OfInteger
- rtype
None
-
Degree
()¶ - Returns the degree of the BSpline curve whose data is computed in this framework.
- rtype
int
-
IsPeriodic
()¶ - Returns true if the BSpline curve whose data is computed in this framework is periodic.
- rtype
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.
- param Index
- type Index
int
- rtype
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.
- param Index
- type Index
int
- rtype
int
-
NbKnots
()¶ - Returns the number of knots of the BSpline curve whose data is computed in this framework.
- rtype
int
-
NbPoles
()¶ - Returns the number of poles of the BSpline curve whose data is computed in this framework.
- rtype
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.
- param Index
- type Index
int
- rtype
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.
- param Index
- type Index
int
- rtype
float
-
property
thisown
¶ The membership flag
-
-
class
Convert_CylinderToBSplineSurface
(*args)¶ Bases:
OCC.Core.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.
- param Cyl
- type Cyl
gp_Cylinder
- param U1
- type U1
float
- param U2
- type U2
float
- param V1
- type V1
float
- param V2
- type V2
float
- rtype
None* The equivalent B-splineSurface as the same orientation as the cylinder in the U and V parametric directions. //! Raised if V1 = V2.
- param Cyl
- type Cyl
gp_Cylinder
- param V1
- type V1
float
- param V2
- type V2
float
- rtype
None
-
property
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.
- rtype
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 .
- rtype
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.
- rtype
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.
- param UIndex
- type UIndex
int
- param VIndex
- type VIndex
int
- rtype
gp_Pnt
-
UKnot
()¶ - Returns the U-knot of range UIndex. Raised if UIndex < 1 or UIndex > NbUKnots.
- param UIndex
- type UIndex
int
- rtype
float
-
UMultiplicity
()¶ - Returns the multiplicity of the U-knot of range UIndex. Raised if UIndex < 1 or UIndex > NbUKnots.
- param UIndex
- type UIndex
int
- rtype
int
-
VDegree
()¶ - Returns the degree for the u or v parametric direction of the BSpline surface whose data is computed in this framework.
- rtype
int
-
VKnot
()¶ - Returns the V-knot of range VIndex. Raised if VIndex < 1 or VIndex > NbVKnots.
- param UIndex
- type UIndex
int
- rtype
float
-
VMultiplicity
()¶ - Returns the multiplicity of the V-knot of range VIndex. Raised if VIndex < 1 or VIndex > NbVKnots.
- param VIndex
- type VIndex
int
- rtype
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.
- param UIndex
- type UIndex
int
- param VIndex
- type VIndex
int
- rtype
float
-
property
thisown
¶ The membership flag
-
-
class
Convert_EllipseToBSplineCurve
(*args)¶ Bases:
OCC.Core.Convert.Convert_ConicToBSplineCurve
- The equivalent B-spline curve has the same orientation as the ellipse E.
- param E
- type E
gp_Elips2d
- param Parameterisation
default value is Convert_TgtThetaOver2
- type Parameterisation
Convert_ParameterisationType
- rtype
None* 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
- param E
- type E
gp_Elips2d
- param U1
- type U1
float
- param U2
- type U2
float
- param Parameterisation
default value is Convert_TgtThetaOver2
- type Parameterisation
Convert_ParameterisationType
- rtype
None
-
property
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. //! CoefficientsThe <Coefficients> have to be formated than an ‘C array’ [MaxUDegree+1] [MaxVDegree+1] [3]
- param MaxUDegree
- type MaxUDegree
int
- param MaxVDegree
- type MaxVDegree
int
- param NumCoeff
- type NumCoeff
TColStd_HArray1OfInteger
- param Coefficients
- type Coefficients
TColStd_HArray1OfReal
- param PolynomialUIntervals
- type PolynomialUIntervals
TColStd_HArray1OfReal
- param PolynomialVIntervals
- type PolynomialVIntervals
TColStd_HArray1OfReal
- rtype
None* 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
- param NbUSurfaces
- type NbUSurfaces
int
- param NBVSurfaces
- type NBVSurfaces
int
- param UContinuity
- type UContinuity
int
- param VContinuity
- type VContinuity
int
- param MaxUDegree
- type MaxUDegree
int
- param MaxVDegree
- type MaxVDegree
int
- param NumCoeffPerSurface
- type NumCoeffPerSurface
TColStd_HArray2OfInteger
- param Coefficients
- type Coefficients
TColStd_HArray1OfReal
- param PolynomialUIntervals
- type PolynomialUIntervals
TColStd_HArray1OfReal
- param PolynomialVIntervals
- type PolynomialVIntervals
TColStd_HArray1OfReal
- param TrueUIntervals
- type TrueUIntervals
TColStd_HArray1OfReal
- param TrueVIntervals
- type TrueVIntervals
TColStd_HArray1OfReal
- rtype
None
-
Perform
()¶ - Parameters
UContinuity –
- type UContinuity
int
- param VContinuity
- type VContinuity
int
- param MaxUDegree
- type MaxUDegree
int
- param MaxVDegree
- type MaxVDegree
int
- param NumCoeffPerSurface
- type NumCoeffPerSurface
TColStd_HArray2OfInteger
- param Coefficients
- type Coefficients
TColStd_HArray1OfReal
- param PolynomialUIntervals
- type PolynomialUIntervals
TColStd_HArray1OfReal
- param PolynomialVIntervals
- type PolynomialVIntervals
TColStd_HArray1OfReal
- param TrueUIntervals
- type TrueUIntervals
TColStd_HArray1OfReal
- param TrueVIntervals
- type TrueVIntervals
TColStd_HArray1OfReal
- rtype
None
-
Poles
()¶ - returns the poles of the BSpline Surface
- rtype
opencascade::handle<TColgp_HArray2OfPnt>
-
UKnots
()¶ - Knots in the U direction
- rtype
opencascade::handle<TColStd_HArray1OfReal>
-
UMultiplicities
()¶ - Multiplicities of the knots in the U direction
- rtype
opencascade::handle<TColStd_HArray1OfInteger>
-
VKnots
()¶ - Knots in the V direction
- rtype
opencascade::handle<TColStd_HArray1OfReal>
-
VMultiplicities
()¶ - Multiplicities of the knots in the V direction
- rtype
opencascade::handle<TColStd_HArray1OfInteger>
-
property
thisown
¶ The membership flag
-
class
Convert_HyperbolaToBSplineCurve
(*args)¶ Bases:
OCC.Core.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.
- param H
- type H
gp_Hypr2d
- param U1
- type U1
float
- param U2
- type U2
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Convert_ParabolaToBSplineCurve
(*args)¶ Bases:
OCC.Core.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.
- param Prb
- type Prb
gp_Parab2d
- param U1
- type U1
float
- param U2
- type U2
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Convert_SequenceOfArray1OfPoles
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
Convert_SphereToBSplineSurface
(*args)¶ Bases:
OCC.Core.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.
- param Sph
- type Sph
gp_Sphere
- param U1
- type U1
float
- param U2
- type U2
float
- param V1
- type V1
float
- param V2
- type V2
float
- rtype
None* 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
- param Sph
- type Sph
gp_Sphere
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param UTrim
default value is Standard_True
- type UTrim
bool
- rtype
None* The equivalent B-spline surface as the same orientation as the sphere in the U and V parametric directions.
- param Sph
- type Sph
gp_Sphere
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Convert_TorusToBSplineSurface
(*args)¶ Bases:
OCC.Core.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
- param T
- type T
gp_Torus
- param U1
- type U1
float
- param U2
- type U2
float
- param V1
- type V1
float
- param V2
- type V2
float
- rtype
None* 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
- param T
- type T
gp_Torus
- param Param1
- type Param1
float
- param Param2
- type Param2
float
- param UTrim
default value is Standard_True
- type UTrim
bool
- rtype
None* The equivalent B-spline surface as the same orientation as the torus in the U and V parametric directions.
- param T
- type T
gp_Torus
- rtype
None
-
property
thisown
¶ The membership flag