OCC.Blend module¶
-
class
Blend_AppFunction
(*args, **kwargs)¶ Bases:
OCC.math.math_FunctionSetWithDerivatives
-
GetBounds
()¶ - Returns in the vector InfBound the lowest values allowed for each of the 4 variables. Returns in the vector SupBound the greatest values allowed for each of the 4 variables.
Parameters: - InfBound (math_Vector &) –
- SupBound (math_Vector &) –
Return type: void
-
GetMinimalDistance
()¶ - Returns the minimal Distance beetween two extremitys of calculed sections.
Return type: float
-
GetMinimalWeight
()¶ - Compute the minimal value of weight for each poles of all sections.
Parameters: Weigths (TColStd_Array1OfReal &) – Return type: void
-
GetShape
()¶ Parameters: - NbPoles (int &) –
- NbKnots (int &) –
- Degree (int &) –
- NbPoles2d (int &) –
Return type: void
-
GetTolerance
()¶ - Returns in the vector Tolerance the parametric tolerance for each of the 4 variables; Tol is the tolerance used in 3d space.
Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: void
- Returns the tolerance to reach in approximation to respecte BoundTol error at the Boundary AngleTol tangent error at the Boundary SurfTol error inside the surface.
Parameters: Return type: void
-
Intervals
()¶ - Stores in <T> the parameters bounding the intervals of continuity <S>. //! The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals() raises OutOfRange from Standard
Parameters: - T (TColStd_Array1OfReal &) –
- S (GeomAbs_Shape) –
Return type: void
-
IsSolution
()¶ - Returns Standard_True if Sol is a zero of the function. Tol is the tolerance used in 3d space. The computation is made at the current value of the parameter on the guide line.
Parameters: - Sol (math_Vector &) –
- Tol (float) –
Return type:
-
Knots
()¶ Parameters: TKnots (TColStd_Array1OfReal &) – Return type: void
-
Mults
()¶ Parameters: TMults (TColStd_Array1OfInteger &) – Return type: void
-
NbIntervals
()¶ - Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
Parameters: S (GeomAbs_Shape) – Return type: int
-
Parameter
()¶ - Returns the parameter of the point P. Used to impose the parameters in the approximation.
Parameters: P (Blend_Point &) – Return type: float
-
Resolution
()¶ Parameters: Return type: void
-
Section
()¶ - Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters: - P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- DPoles (TColgp_Array1OfVec) –
- Poles2d (TColgp_Array1OfPnt2d) –
- DPoles2d (TColgp_Array1OfVec2d) –
- Weigths (TColStd_Array1OfReal &) –
- DWeigths (TColStd_Array1OfReal &) –
- P –
- Poles –
- Poles2d –
- Weigths –
Return type: Return type: void
- Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters: - P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- DPoles (TColgp_Array1OfVec) –
- D2Poles (TColgp_Array1OfVec) –
- Poles2d (TColgp_Array1OfPnt2d) –
- DPoles2d (TColgp_Array1OfVec2d) –
- D2Poles2d (TColgp_Array1OfVec2d) –
- Weigths (TColStd_Array1OfReal &) –
- DWeigths (TColStd_Array1OfReal &) –
- D2Weigths (TColStd_Array1OfReal &) –
Return type:
-
Set
()¶ - Sets the value of the parameter along the guide line. This determines the plane in which the solution has to be found.
Parameters: Param (float) – Return type: void - Sets the bounds of the parametric interval on the guide line. This determines the derivatives in these values if the function is not Cn.
Parameters: Return type: void
-
thisown
¶ The membership flag
-
-
class
Blend_CSFunction
(*args, **kwargs)¶ Bases:
OCC.Blend.Blend_AppFunction
-
GetTolerance
()¶ - Returns in the vector Tolerance the parametric tolerance for each of the 3 variables; Tol is the tolerance used in 3d space.
Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: void
- Returns the tolerance to reach in approximation to respecte BoundTol error at the Boundary AngleTol tangent error at the Boundary SurfTol error inside the surface.
Parameters: Return type: void
-
IsTangencyPoint
()¶ - Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnC.
Return type: bool
-
Section
()¶ - Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters: - P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- DPoles (TColgp_Array1OfVec) –
- Poles2d (TColgp_Array1OfPnt2d) –
- DPoles2d (TColgp_Array1OfVec2d) –
- Weigths (TColStd_Array1OfReal &) –
- DWeigths (TColStd_Array1OfReal &) –
- P –
- Poles –
- Poles2d –
- Weigths –
Return type: Return type: void
- Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters: - P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- DPoles (TColgp_Array1OfVec) –
- D2Poles (TColgp_Array1OfVec) –
- Poles2d (TColgp_Array1OfPnt2d) –
- DPoles2d (TColgp_Array1OfVec2d) –
- D2Poles2d (TColgp_Array1OfVec2d) –
- Weigths (TColStd_Array1OfReal &) –
- DWeigths (TColStd_Array1OfReal &) –
- D2Weigths (TColStd_Array1OfReal &) –
Return type:
-
Set
()¶ - Sets the value of the parameter along the guide line. This determines the plane in which the solution has to be found.
Parameters: Param (float) – Return type: void - Sets the bounds of the parametric interval on the guide line. This determines the derivatives in these values if the function is not Cn.
Parameters: Return type: void
-
Tangent
()¶ - Returns the tangent vector at the section, at the beginning and the end of the section, and returns the normal (of the surfaces) at these points.
Parameters: Return type: void
-
Tangent2d
()¶ - Returns the tangent vector at PointOnS, in the parametric space of the first surface.
Return type: gp_Vec2d
-
thisown
¶ The membership flag
-
-
class
Blend_CurvPointFuncInv
(*args, **kwargs)¶ Bases:
OCC.math.math_FunctionSetWithDerivatives
-
GetBounds
()¶ - Returns in the vector InfBound the lowest values allowed for each of the 3 variables. Returns in the vector SupBound the greatest values allowed for each of the 3 variables.
Parameters: - InfBound (math_Vector &) –
- SupBound (math_Vector &) –
Return type: void
-
GetTolerance
()¶ - Returns in the vector Tolerance the parametric tolerance for each of the 3 variables; Tol is the tolerance used in 3d space.
Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: void
-
IsSolution
()¶ - Returns Standard_True if Sol is a zero of the function. Tol is the tolerance used in 3d space.
Parameters: - Sol (math_Vector &) –
- Tol (float) –
Return type:
-
thisown
¶ The membership flag
-
-
class
Blend_FuncInv
(*args, **kwargs)¶ Bases:
OCC.math.math_FunctionSetWithDerivatives
-
GetBounds
()¶ - Returns in the vector InfBound the lowest values allowed for each of the 4 variables. Returns in the vector SupBound the greatest values allowed for each of the 4 variables.
Parameters: - InfBound (math_Vector &) –
- SupBound (math_Vector &) –
Return type: void
-
GetTolerance
()¶ - Returns in the vector Tolerance the parametric tolerance for each of the 4 variables; Tol is the tolerance used in 3d space.
Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: void
-
IsSolution
()¶ - Returns Standard_True if Sol is a zero of the function. Tol is the tolerance used in 3d space.
Parameters: - Sol (math_Vector &) –
- Tol (float) –
Return type:
-
Set
()¶ - Sets the CurveOnSurface on which a solution has to be found. If <OnFirst> is set to Standard_True, the curve will be on the first surface, otherwise the curve is on the second one.
Parameters: - OnFirst (bool) –
- COnSurf (Handle_Adaptor2d_HCurve2d &) –
Return type: void
-
thisown
¶ The membership flag
-
-
class
Blend_Function
(*args, **kwargs)¶ Bases:
OCC.Blend.Blend_AppFunction
-
GetTolerance
()¶ - Returns in the vector Tolerance the parametric tolerance for each of the 4 variables; Tol is the tolerance used in 3d space.
Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: void
- Returns the tolerance to reach in approximation to respecte BoundTol error at the Boundary AngleTol tangent error at the Boundary SurfTol error inside the surface.
Parameters: Return type: void
-
IsTangencyPoint
()¶ - Returns True when it is not possible to compute the tangent vectors at PointOnS1 and/or PointOnS2.
Return type: bool
-
PointOnS1
()¶ - Returns the point on the first surface, at parameter Sol(1),Sol(2) (Sol is the vector used in the call of IsSolution.
Return type: gp_Pnt
-
PointOnS2
()¶ - Returns the point on the second surface, at parameter Sol(3),Sol(4) (Sol is the vector used in the call of IsSolution.
Return type: gp_Pnt
-
Section
()¶ - Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters: - P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- DPoles (TColgp_Array1OfVec) –
- Poles2d (TColgp_Array1OfPnt2d) –
- DPoles2d (TColgp_Array1OfVec2d) –
- Weigths (TColStd_Array1OfReal &) –
- DWeigths (TColStd_Array1OfReal &) –
- P –
- Poles –
- Poles2d –
- Weigths –
Return type: Return type: void
- Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False
Parameters: - P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- DPoles (TColgp_Array1OfVec) –
- D2Poles (TColgp_Array1OfVec) –
- Poles2d (TColgp_Array1OfPnt2d) –
- DPoles2d (TColgp_Array1OfVec2d) –
- D2Poles2d (TColgp_Array1OfVec2d) –
- Weigths (TColStd_Array1OfReal &) –
- DWeigths (TColStd_Array1OfReal &) –
- D2Weigths (TColStd_Array1OfReal &) –
Return type:
-
Set
()¶ - Sets the value of the parameter along the guide line. This determines the plane in which the solution has to be found.
Parameters: Param (float) – Return type: void - Sets the bounds of the parametric interval on the guide line. This determines the derivatives in these values if the function is not Cn.
Parameters: Return type: void
-
Tangent
()¶ - Returns the tangent vector at the section, at the beginning and the end of the section, and returns the normal (of the surfaces) at these points.
Parameters: Return type: void
-
Tangent2dOnS1
()¶ - Returns the tangent vector at PointOnS1, in the parametric space of the first surface.
Return type: gp_Vec2d
-
Tangent2dOnS2
()¶ - Returns the tangent vector at PointOnS2, in the parametric space of the second surface.
Return type: gp_Vec2d
-
thisown
¶ The membership flag
-
-
class
Blend_Point
(*args)¶ Bases:
object
Return type: None - Creates a point on 2 surfaces, with tangents.
Parameters: Return type: - Creates a point on 2 surfaces, without tangents.
Parameters: Return type: - Creates a point on a surface and a curve, with tangents.
Parameters: Return type: - Creates a point on a surface and a curve, without tangents.
Parameters: Return type: - Creates a point on a surface and a curve on surface, with tangents.
Parameters: Return type: - Creates a point on a surface and a curve on surface, without tangents.
Parameters: Return type: - Creates a point on two curves on surfaces, with tangents.
Parameters: Return type: - Creates a point on two curves on surfaces, with tangents.
Parameters: Return type: -
IsTangencyPoint
()¶ - Returns Standard_True if it was not possible to compute the tangent vectors at PointOnS1 and/or PointOnS2.
Return type: bool
-
SetValue
()¶ - Set the values for a point on 2 surfaces, with tangents.
Parameters: Return type: - Set the values for a point on 2 surfaces, without tangents.
Parameters: Return type: - Set the values for a point on a surface and a curve, with tangents.
Parameters: Return type: - Set the values for a point on a surface and a curve, without tangents.
Parameters: Return type: - Creates a point on a surface and a curve on surface, with tangents.
Parameters: Return type: - Creates a point on a surface and a curve on surface, without tangents.
Parameters: Return type: - Creates a point on two curves on surfaces, with tangents.
Parameters: Return type: - Creates a point on two curves on surfaces, without tangents.
Parameters: Return type: - Creates a point on two curves.
Parameters: Return type:
-
thisown
¶ The membership flag
-
class
Blend_RstRstFunction
(*args, **kwargs)¶ Bases:
OCC.Blend.Blend_AppFunction
-
Decroch
()¶ - Enables to implement a criterion of decrochage specific to the function. Warning: Can be called without previous call of issolution but the values calculated can be senseless.
Parameters: Return type: Blend_DecrochStatus
-
GetTolerance
()¶ - Returns in the vector Tolerance the parametric tolerance for each variable; Tol is the tolerance used in 3d space.
Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: void
- Returns the tolerance to reach in approximation to respecte BoundTol error at the Boundary AngleTol tangent error at the Boundary SurfTol error inside the surface.
Parameters: Return type: void
-
IsTangencyPoint
()¶ - Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnRst.
Return type: bool
-
Section
()¶ Parameters: - P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- Poles2d (TColgp_Array1OfPnt2d) –
- Weigths (TColStd_Array1OfReal &) –
Return type: void
- Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters: - P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- DPoles (TColgp_Array1OfVec) –
- Poles2d (TColgp_Array1OfPnt2d) –
- DPoles2d (TColgp_Array1OfVec2d) –
- Weigths (TColStd_Array1OfReal &) –
- DWeigths (TColStd_Array1OfReal &) –
Return type: - Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters: - P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- DPoles (TColgp_Array1OfVec) –
- D2Poles (TColgp_Array1OfVec) –
- Poles2d (TColgp_Array1OfPnt2d) –
- DPoles2d (TColgp_Array1OfVec2d) –
- D2Poles2d (TColgp_Array1OfVec2d) –
- Weigths (TColStd_Array1OfReal &) –
- DWeigths (TColStd_Array1OfReal &) –
- D2Weigths (TColStd_Array1OfReal &) –
Return type:
-
Set
()¶ - Sets the value of the parameter along the guide line. This determines the plane in which the solution has to be found.
Parameters: Param (float) – Return type: void - Sets the bounds of the parametric interval on the guide line. This determines the derivatives in these values if the function is not Cn.
Parameters: Return type: void
-
Tangent2dOnRst1
()¶ - Returns the tangent vector at PointOnS, in the parametric space of the first surface.
Return type: gp_Vec2d
-
Tangent2dOnRst2
()¶ - Returns the tangent vector at PointOnRst, in the parametric space of the second surface.
Return type: gp_Vec2d
-
thisown
¶ The membership flag
-
-
class
Blend_SequenceNodeOfSequenceOfPoint
(*args)¶ Bases:
OCC.TCollection.TCollection_SeqNode
Parameters: - I (Blend_Point &) –
- n (TCollection_SeqNodePtr &) –
- p (TCollection_SeqNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: Blend_Point
-
thisown
¶ The membership flag
-
class
Blend_SequenceOfPoint
(*args)¶ Bases:
OCC.TCollection.TCollection_BaseSequence
Return type: None Parameters: Other (Blend_SequenceOfPoint &) – Return type: None -
Append
()¶ Parameters: - T (Blend_Point &) –
- S (Blend_SequenceOfPoint &) –
Return type: Return type:
-
Assign
()¶ Parameters: Other (Blend_SequenceOfPoint &) – Return type: Blend_SequenceOfPoint
-
ChangeValue
()¶ Parameters: Index (int) – Return type: Blend_Point
-
First
()¶ Return type: Blend_Point
-
InsertAfter
()¶ Parameters: - Index (int) –
- T (Blend_Point &) –
- Index –
- S (Blend_SequenceOfPoint &) –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - Index (int) –
- T (Blend_Point &) –
- Index –
- S (Blend_SequenceOfPoint &) –
Return type: Return type:
-
Last
()¶ Return type: Blend_Point
-
Prepend
()¶ Parameters: - T (Blend_Point &) –
- S (Blend_SequenceOfPoint &) –
Return type: Return type:
-
Remove
()¶ Parameters: Return type: Return type:
-
Set
()¶ Parameters: Other (Blend_SequenceOfPoint &) – Return type: Blend_SequenceOfPoint
-
Value
()¶ Parameters: Index (int) – Return type: Blend_Point
-
thisown
¶ The membership flag
-
-
class
Blend_SurfCurvFuncInv
(*args, **kwargs)¶ Bases:
OCC.math.math_FunctionSetWithDerivatives
-
GetBounds
()¶ - Returns in the vector InfBound the lowest values allowed for each of the 3 variables. Returns in the vector SupBound the greatest values allowed for each of the 3 variables.
Parameters: - InfBound (math_Vector &) –
- SupBound (math_Vector &) –
Return type: void
-
GetTolerance
()¶ - Returns in the vector Tolerance the parametric tolerance for each of the 3 variables; Tol is the tolerance used in 3d space.
Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: void
-
IsSolution
()¶ - Returns Standard_True if Sol is a zero of the function. Tol is the tolerance used in 3d space.
Parameters: - Sol (math_Vector &) –
- Tol (float) –
Return type:
-
Set
()¶ - Set the Point on which a solution has to be found.
Parameters: Rst (Handle_Adaptor2d_HCurve2d &) – Return type: void
-
thisown
¶ The membership flag
-
-
class
Blend_SurfPointFuncInv
(*args, **kwargs)¶ Bases:
OCC.math.math_FunctionSetWithDerivatives
-
GetBounds
()¶ - Returns in the vector InfBound the lowest values allowed for each of the 3 variables. Returns in the vector SupBound the greatest values allowed for each of the 3 variables.
Parameters: - InfBound (math_Vector &) –
- SupBound (math_Vector &) –
Return type: void
-
GetTolerance
()¶ - Returns in the vector Tolerance the parametric tolerance for each of the 3 variables; Tol is the tolerance used in 3d space.
Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: void
-
IsSolution
()¶ - Returns Standard_True if Sol is a zero of the function. Tol is the tolerance used in 3d space.
Parameters: - Sol (math_Vector &) –
- Tol (float) –
Return type:
-
thisown
¶ The membership flag
-
-
class
Blend_SurfRstFunction
(*args, **kwargs)¶ Bases:
OCC.Blend.Blend_AppFunction
-
Decroch
()¶ - Enables implementation of a criterion of decrochage specific to the function.
Parameters: Return type:
-
GetTolerance
()¶ - Returns in the vector Tolerance the parametric tolerance for each variable; Tol is the tolerance used in 3d space.
Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: void
- Returns the tolerance to reach in approximation to respecte BoundTol error at the Boundary AngleTol tangent error at the Boundary SurfTol error inside the surface.
Parameters: Return type: void
-
IsTangencyPoint
()¶ - Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnRst.
Return type: bool
-
Section
()¶ - Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters: - P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- DPoles (TColgp_Array1OfVec) –
- Poles2d (TColgp_Array1OfPnt2d) –
- DPoles2d (TColgp_Array1OfVec2d) –
- Weigths (TColStd_Array1OfReal &) –
- DWeigths (TColStd_Array1OfReal &) –
Return type: - Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters: - P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- DPoles (TColgp_Array1OfVec) –
- D2Poles (TColgp_Array1OfVec) –
- Poles2d (TColgp_Array1OfPnt2d) –
- DPoles2d (TColgp_Array1OfVec2d) –
- D2Poles2d (TColgp_Array1OfVec2d) –
- Weigths (TColStd_Array1OfReal &) –
- DWeigths (TColStd_Array1OfReal &) –
- D2Weigths (TColStd_Array1OfReal &) –
- P –
- Poles –
- Poles2d –
- Weigths –
Return type: Return type: void
-
Set
()¶ - Sets the value of the parameter along the guide line. This determines the plane in which the solution has to be found.
Parameters: Param (float) – Return type: void - Sets the bounds of the parametric interval on the guide line. This determines the derivatives in these values if the function is not Cn.
Parameters: Return type: void
-
Tangent2dOnRst
()¶ - Returns the tangent vector at PointOnRst, in the parametric space of the second surface.
Return type: gp_Vec2d
-
Tangent2dOnS
()¶ - Returns the tangent vector at PointOnS, in the parametric space of the first surface.
Return type: gp_Vec2d
-
thisown
¶ The membership flag
-
-
class
Handle_Blend_SequenceNodeOfSequenceOfPoint
(*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