OCC.BlendFunc module¶
This package provides a set of generic functions, that caninstantiated to compute blendings between two surfaces(Constant radius, Evolutive radius, Ruled surface).
-
class
BlendFunc_CSCircular
(*args)¶ Bases:
OCC.Blend.Blend_CSFunction
- Creates a function for a circular blending between a curve <C> and a surface <S>. The direction of the planes are given by <CGuide>. The position of the plane is determined on the curve <C>. <L> defines the change of parameter between <C> and <CGuide>. So, the planes are defined as described below : t is the current parameter on the guide line. Pguide = C(L(t)); Nguide = CGuide’(t)/||CGuide’(t)||
Parameters: - S (Handle_Adaptor3d_HSurface &) –
- C (Handle_Adaptor3d_HCurve &) –
- CGuide (Handle_Adaptor3d_HCurve &) –
- L (Handle_Law_Function &) –
Return type: -
GetSection
()¶ Parameters: - Param (float) –
- U (float) –
- V (float) –
- W (float) –
- tabP (TColgp_Array1OfPnt) –
- tabV (TColgp_Array1OfVec) –
Return type:
-
GetTolerance
()¶ Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: - 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:
-
Section
()¶ Parameters: 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: - Used for the first and last section
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:
-
Set
()¶ Parameters: Return type: Return type: Return type: - Sets the type of section generation for the approximations.
Parameters: TypeSection (BlendFunc_SectionShape) – Return type: None
-
thisown
¶ The membership flag
-
class
BlendFunc_CSConstRad
(*args)¶ Bases:
OCC.Blend.Blend_CSFunction
Parameters: - S (Handle_Adaptor3d_HSurface &) –
- C (Handle_Adaptor3d_HCurve &) –
- CGuide (Handle_Adaptor3d_HCurve &) –
Return type: -
GetSection
()¶ Parameters: - Param (float) –
- U (float) –
- V (float) –
- W (float) –
- tabP (TColgp_Array1OfPnt) –
- tabV (TColgp_Array1OfVec) –
Return type:
-
GetTolerance
()¶ Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: - 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:
-
Section
()¶ Parameters: 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: - Used for the first and last section
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:
-
Set
()¶ Parameters: Return type: Return type: Return type: - Sets the type of section generation for the approximations.
Parameters: TypeSection (BlendFunc_SectionShape) – Return type: None
-
thisown
¶ The membership flag
-
class
BlendFunc_ChAsym
(*args)¶ Bases:
OCC.Blend.Blend_Function
Parameters: - S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
- C (Handle_Adaptor3d_HCurve &) –
Return type: -
ComputeValues
()¶ - computes the values <F> of the derivatives for the variable <X> between DegF and DegL. Returns True if the computation was done successfully, False otherwise.
Parameters: Return type:
-
GetTolerance
()¶ Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: - 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:
-
Section
()¶ - Utile pour une visu rapide et approximative de la surface.
Parameters: - Param (float) –
- U1 (float) –
- V1 (float) –
- U2 (float) –
- V2 (float) –
- Pdeb (float &) –
- Pfin (float &) –
- C (gp_Lin) –
- P (Blend_Point &) –
- Poles (TColgp_Array1OfPnt) –
- Poles2d (TColgp_Array1OfPnt2d) –
- Weigths (TColStd_Array1OfReal &) –
Return type: Return type: - Used for the first and last section
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
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
()¶ Parameters: Return type: Return type: - Sets the distances and the angle.
Parameters: Return type:
-
thisown
¶ The membership flag
-
class
BlendFunc_ChAsymInv
(*args)¶ Bases:
OCC.Blend.Blend_FuncInv
Parameters: - S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
- C (Handle_Adaptor3d_HCurve &) –
Return type: -
ComputeValues
()¶ - computes the values <F> of the derivatives for the variable <X> between DegF and DegL. Returns True if the computation was done successfully, False otherwise.
Parameters: Return type:
-
Set
()¶ Parameters: Return type: Return type:
-
thisown
¶ The membership flag
-
class
BlendFunc_ChamfInv
(*args)¶ Bases:
OCC.Blend.Blend_FuncInv
Parameters: - S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
- C (Handle_Adaptor3d_HCurve &) –
Return type: -
Set
()¶ Parameters: Return type: Return type:
-
thisown
¶ The membership flag
-
class
BlendFunc_Chamfer
(*args)¶ Bases:
OCC.Blend.Blend_Function
Parameters: - S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
- CG (Handle_Adaptor3d_HCurve &) –
Return type: -
GetTolerance
()¶ Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: - 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:
-
Section
()¶ - Obsolete method
Parameters: Return type: - Used for the first and last section
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: - Used for the first and last section
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:
-
Set
()¶ Parameters: Return type: Return type: - Sets the distances and the ‘quadrant’.
Parameters: Return type:
-
thisown
¶ The membership flag
-
class
BlendFunc_ConstRad
(*args)¶ Bases:
OCC.Blend.Blend_Function
Parameters: - S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
- C (Handle_Adaptor3d_HCurve &) –
Return type: -
GetTolerance
()¶ Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: - 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:
-
Section
()¶ - Utile pour une visu rapide et approximative de la surface.
Parameters: Return type: - Used for the first and last section
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: - Used for the first and last section
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:
-
Set
()¶ Parameters: Return type: Return type: - Inits the value of radius, and the ‘quadrant’.
Parameters: Return type: - Sets the type of section generation for the approximations.
Parameters: TypeSection (BlendFunc_SectionShape) – Return type: None
-
thisown
¶ The membership flag
-
class
BlendFunc_ConstRadInv
(*args)¶ Bases:
OCC.Blend.Blend_FuncInv
Parameters: - S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
- C (Handle_Adaptor3d_HCurve &) –
Return type: -
Set
()¶ Parameters: Return type: Return type:
-
thisown
¶ The membership flag
-
class
BlendFunc_Corde
(*args)¶ Bases:
object
Parameters: - S (Handle_Adaptor3d_HSurface &) –
- CGuide (Handle_Adaptor3d_HCurve &) –
Return type: -
DerFguide
()¶ - Derived of the function compared to the parameter of the guideline
Parameters: - Sol (math_Vector &) –
- DerF (gp_Vec2d) –
Return type:
-
Derivatives
()¶ - returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters: - X (math_Vector &) –
- D (math_Matrix &) –
Return type:
-
IsSolution
()¶ - Returns False if Sol is not solution else returns True and updates the fields tgs and tg2d
Parameters: - Sol (math_Vector &) –
- Tol (float) –
Return type:
-
IsTangencyPoint
()¶ - Returns True when it is not possible to compute the tangent vectors at PointOnS.
Return type: bool
-
Tangent2dOnS
()¶ - Returns the tangent vector at PointOnS, in the parametric space of the first surface.
Return type: gp_Vec2d
-
Value
()¶ - computes the values <F> of the Function for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters: - X (math_Vector &) –
- F (math_Vector &) –
Return type:
-
thisown
¶ The membership flag
-
class
BlendFunc_EvolRad
(*args)¶ Bases:
OCC.Blend.Blend_Function
Parameters: - S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
- C (Handle_Adaptor3d_HCurve &) –
- Law (Handle_Law_Function &) –
Return type: -
GetTolerance
()¶ Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: - 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:
-
Section
()¶ - Method for graphic traces
Parameters: Return type: - Used for the first and last section
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: - Used for the first and last section
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:
-
Set
()¶ Parameters: Return type: Return type: Return type: - Sets the type of section generation for the approximations.
Parameters: TypeSection (BlendFunc_SectionShape) – Return type: None
-
thisown
¶ The membership flag
-
class
BlendFunc_EvolRadInv
(*args)¶ Bases:
OCC.Blend.Blend_FuncInv
Parameters: - S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
- C (Handle_Adaptor3d_HCurve &) –
- Law (Handle_Law_Function &) –
Return type: -
Set
()¶ Parameters: Return type: Return type:
-
thisown
¶ The membership flag
-
class
BlendFunc_Ruled
(*args)¶ Bases:
OCC.Blend.Blend_Function
Parameters: - S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
- C (Handle_Adaptor3d_HCurve &) –
Return type: -
GetSection
()¶ Parameters: - Param (float) –
- U1 (float) –
- V1 (float) –
- U2 (float) –
- V2 (float) –
- tabP (TColgp_Array1OfPnt) –
- tabV (TColgp_Array1OfVec) –
Return type:
-
GetTolerance
()¶ Parameters: - Tolerance (math_Vector &) –
- Tol (float) –
Return type: - 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:
-
Section
()¶ - Used for the first and last section
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: - Used for the first and last section
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:
-
thisown
¶ The membership flag
-
class
BlendFunc_RuledInv
(*args)¶ Bases:
OCC.Blend.Blend_FuncInv
Parameters: - S1 (Handle_Adaptor3d_HSurface &) –
- S2 (Handle_Adaptor3d_HSurface &) –
- C (Handle_Adaptor3d_HCurve &) –
Return type: -
thisown
¶ The membership flag
-
class
BlendFunc_Tensor
(*args)¶ Bases:
object
Parameters: Return type: -
ChangeValue
()¶ - accesses (in read or write mode) the value of index <Row>, <Col> and <Mat> of a Tensor. An exception is raised if <Row>, <Col> or <Mat> are not in the correct range.
Parameters: Return type:
-
Init
()¶ - Initialize all the elements of a Tensor to InitialValue.
Parameters: InitialValue (float) – Return type: None
-
Value
()¶ - accesses (in read or write mode) the value of index <Row>, <Col> and <Mat> of a Tensor. An exception is raised if <Row>, <Col> or <Mat> are not in the correct range.
Parameters: Return type:
-
thisown
¶ The membership flag
-
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
class
blendfunc
¶ Bases:
object
-
static
ComputeDNormal
()¶ Parameters: Return type:
-
static
ComputeNormal
()¶ Parameters: Return type:
-
static
GetMinimalWeights
()¶ Parameters: Return type: void
-
static
GetShape
()¶ Parameters: - SectShape (BlendFunc_SectionShape) –
- MaxAng (float) –
- NbPoles (int &) –
- NbKnots (int &) –
- Degree (int &) –
- TypeConv (Convert_ParameterisationType &) –
Return type: void
-
static
NextShape
()¶ - Used to obtain the next level of continuity.
Parameters: S (GeomAbs_Shape) – Return type: GeomAbs_Shape
-
thisown
¶ The membership flag
-
static
-
blendfunc_ComputeDNormal
()¶ Parameters: Return type:
-
blendfunc_ComputeNormal
()¶ Parameters: Return type:
-
blendfunc_GetMinimalWeights
()¶ Parameters: Return type: void
-
blendfunc_GetShape
()¶ Parameters: - SectShape (BlendFunc_SectionShape) –
- MaxAng (float) –
- NbPoles (int &) –
- NbKnots (int &) –
- Degree (int &) –
- TypeConv (Convert_ParameterisationType &) –
Return type: void
-
blendfunc_NextShape
()¶ - Used to obtain the next level of continuity.
Parameters: S (GeomAbs_Shape) – Return type: GeomAbs_Shape
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases