OCC.BlendFunc module

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:

None

GetSection()
Parameters:
Return type:

bool

GetTolerance()
Parameters:
  • Tolerance (math_Vector &) –
  • Tol (float) –
Return type:

None

  • 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:
  • BoundTol (float) –
  • SurfTol (float) –
  • AngleTol (float) –
  • Tol3d (math_Vector &) –
  • Tol1D (math_Vector &) –
Return type:

None

Section()
Parameters:
Return type:

None

  • Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters:
Return type:

bool

  • Used for the first and last section
Parameters:
Return type:

bool

Return type:

None

Set()
Parameters:
Return type:

None

Return type:

None

Return type:

None

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

None

GetSection()
Parameters:
Return type:

bool

GetTolerance()
Parameters:
  • Tolerance (math_Vector &) –
  • Tol (float) –
Return type:

None

  • 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:
  • BoundTol (float) –
  • SurfTol (float) –
  • AngleTol (float) –
  • Tol3d (math_Vector &) –
  • Tol1D (math_Vector &) –
Return type:

None

Section()
Parameters:
Return type:

None

  • Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False.
Parameters:
Return type:

bool

  • Used for the first and last section
Parameters:
Return type:

bool

Return type:

None

Set()
Parameters:
Return type:

None

Return type:

None

Return type:

None

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

None

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:
  • X (math_Vector &) –
  • DegF (int) –
  • DegL (int) –
Return type:

bool

GetTolerance()
Parameters:
  • Tolerance (math_Vector &) –
  • Tol (float) –
Return type:

None

  • 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:
  • BoundTol (float) –
  • SurfTol (float) –
  • AngleTol (float) –
  • Tol3d (math_Vector &) –
  • Tol1D (math_Vector &) –
Return type:

None

Section()
  • Utile pour une visu rapide et approximative de la surface.
Parameters:
Return type:

None

Return type:

None

  • Used for the first and last section
Parameters:
Return type:

bool

  • Used for the first and last section
Parameters:
Return type:

bool

Set()
Parameters:
Return type:

None

Return type:

None

  • Sets the distances and the angle.
Parameters:
Return type:

None

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:

None

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:
  • X (math_Vector &) –
  • DegF (int) –
  • DegL (int) –
Return type:

bool

Set()
Parameters:
  • OnFirst (bool) –
  • COnSurf (Handle_Adaptor2d_HCurve2d &) –
  • Dist1 (float) –
  • Angle (float) –
  • Choix (int) –
Return type:

None

Return type:

None

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:

None

Set()
Parameters:
  • OnFirst (bool) –
  • COnSurf (Handle_Adaptor2d_HCurve2d &) –
  • Dist1 (float) –
  • Dist2 (float) –
  • Choix (int) –
Return type:

None

Return type:

None

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:

None

GetTolerance()
Parameters:
  • Tolerance (math_Vector &) –
  • Tol (float) –
Return type:

None

  • 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:
  • BoundTol (float) –
  • SurfTol (float) –
  • AngleTol (float) –
  • Tol3d (math_Vector &) –
  • Tol1D (math_Vector &) –
Return type:

None

Section()
  • Obsolete method
Parameters:
Return type:

None

  • Used for the first and last section
Parameters:
Return type:

bool

  • Used for the first and last section
Parameters:
Return type:

bool

Return type:

None

Set()
Parameters:
Return type:

None

Return type:

None

  • Sets the distances and the ‘quadrant’.
Parameters:
Return type:

None

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:

None

AxeRot()
Parameters:Prm (float) –
Return type:gp_Ax1
GetTolerance()
Parameters:
  • Tolerance (math_Vector &) –
  • Tol (float) –
Return type:

None

  • 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:
  • BoundTol (float) –
  • SurfTol (float) –
  • AngleTol (float) –
  • Tol3d (math_Vector &) –
  • Tol1D (math_Vector &) –
Return type:

None

Section()
  • Utile pour une visu rapide et approximative de la surface.
Parameters:
Return type:

None

  • Used for the first and last section
Parameters:
Return type:

bool

  • Used for the first and last section
Parameters:
Return type:

bool

Return type:

None

Set()
Parameters:
Return type:

None

Return type:

None

  • Inits the value of radius, and the ‘quadrant’.
Parameters:
Return type:

None

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

None

Set()
Parameters:
  • OnFirst (bool) –
  • COnSurf (Handle_Adaptor2d_HCurve2d &) –
  • R (float) –
  • Choix (int) –
Return type:

None

Return type:

None

thisown

The membership flag

class BlendFunc_Corde(*args)

Bases: object

Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • CGuide (Handle_Adaptor3d_HCurve &) –
Return type:

None

DerFguide()
  • Derived of the function compared to the parameter of the guideline
Parameters:
  • Sol (math_Vector &) –
  • DerF (gp_Vec2d) –
Return type:

None

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:

bool

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:

bool

IsTangencyPoint()
  • Returns True when it is not possible to compute the tangent vectors at PointOnS.
Return type:bool
NPlan()
  • returns the normal to CGuide at Ptgui.
Return type:gp_Vec
PointOnGuide()
  • returns the point of parameter <Param> on CGuide
Return type:gp_Pnt
PointOnS()
Return type:gp_Pnt
SetDist()
Parameters:Dist (float) –
Return type:None
SetParam()
Parameters:Param (float) –
Return type:None
Tangent2dOnS()
  • Returns the tangent vector at PointOnS, in the parametric space of the first surface.
Return type:gp_Vec2d
TangentOnS()
  • Returns the tangent vector at PointOnS, in 3d space.
Return type:gp_Vec
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:

bool

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:

None

GetTolerance()
Parameters:
  • Tolerance (math_Vector &) –
  • Tol (float) –
Return type:

None

  • 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:
  • BoundTol (float) –
  • SurfTol (float) –
  • AngleTol (float) –
  • Tol3d (math_Vector &) –
  • Tol1D (math_Vector &) –
Return type:

None

Section()
  • Method for graphic traces
Parameters:
Return type:

None

  • Used for the first and last section
Parameters:
Return type:

bool

  • Used for the first and last section
Parameters:
Return type:

bool

Return type:

None

Set()
Parameters:
Return type:

None

Return type:

None

Return type:

None

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

None

Set()
Parameters:
  • OnFirst (bool) –
  • COnSurf (Handle_Adaptor2d_HCurve2d &) –
  • Choix (int) –
Return type:

None

Return type:

None

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:

None

AxeRot()
Parameters:Prm (float) –
Return type:gp_Ax1
GetSection()
Parameters:
Return type:

bool

GetTolerance()
Parameters:
  • Tolerance (math_Vector &) –
  • Tol (float) –
Return type:

None

  • 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:
  • BoundTol (float) –
  • SurfTol (float) –
  • AngleTol (float) –
  • Tol3d (math_Vector &) –
  • Tol1D (math_Vector &) –
Return type:

None

Section()
  • Used for the first and last section
Parameters:
Return type:

bool

  • Used for the first and last section
Parameters:
Return type:

bool

Return type:

None

Set()
Parameters:
Return type:

None

Return type:

None

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:

None

thisown

The membership flag

class BlendFunc_Tensor(*args)

Bases: object

Parameters:
  • NbRow (int) –
  • NbCol (int) –
  • NbMat (int) –
Return type:

None

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:

float

Init()
  • Initialize all the elements of a Tensor to InitialValue.
Parameters:InitialValue (float) –
Return type:None
Multiply()
Parameters:
  • Right (math_Vector &) –
  • Product (math_Matrix &) –
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:

float

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(*args)
Parameters:
Return type:

bool

static ComputeNormal(*args)
Parameters:
  • Surf (Handle_Adaptor3d_HSurface &) –
  • p2d (gp_Pnt2d) –
  • Normal (gp_Vec) –
Return type:

bool

static GetMinimalWeights(*args)
Parameters:
  • SectShape (BlendFunc_SectionShape) –
  • TConv (Convert_ParameterisationType) –
  • AngleMin (float) –
  • AngleMax (float) –
  • Weigths (TColStd_Array1OfReal &) –
Return type:

void

static GetShape(*args)
Parameters:
  • SectShape (BlendFunc_SectionShape) –
  • MaxAng (float) –
  • NbPoles (int &) –
  • NbKnots (int &) –
  • Degree (int &) –
  • TypeConv (Convert_ParameterisationType &) –
Return type:

void

static NextShape(*args)
  • Used to obtain the next level of continuity.
Parameters:S (GeomAbs_Shape) –
Return type:GeomAbs_Shape
thisown

The membership flag

blendfunc_ComputeDNormal(*args)
Parameters:
Return type:

bool

blendfunc_ComputeNormal(*args)
Parameters:
  • Surf (Handle_Adaptor3d_HSurface &) –
  • p2d (gp_Pnt2d) –
  • Normal (gp_Vec) –
Return type:

bool

blendfunc_GetMinimalWeights(*args)
Parameters:
  • SectShape (BlendFunc_SectionShape) –
  • TConv (Convert_ParameterisationType) –
  • AngleMin (float) –
  • AngleMax (float) –
  • Weigths (TColStd_Array1OfReal &) –
Return type:

void

blendfunc_GetShape(*args)
Parameters:
  • SectShape (BlendFunc_SectionShape) –
  • MaxAng (float) –
  • NbPoles (int &) –
  • NbKnots (int &) –
  • Degree (int &) –
  • TypeConv (Convert_ParameterisationType &) –
Return type:

void

blendfunc_NextShape(*args)
  • Used to obtain the next level of continuity.
Parameters:S (GeomAbs_Shape) –
Return type:GeomAbs_Shape
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases