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
GetSectionSize()
  • Returns the length of the maximum section
Return type:float
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:
  • BoundTol (float) –
  • SurfTol (float) –
  • AngleTol (float) –
  • Tol3d (math_Vector &) –
  • Tol1D (math_Vector &) –
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

IsRational()
  • Returns if the section is rationnal
Return type:bool
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:

bool

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
Pnt1()
  • Returns the point on the first support.
Return type:gp_Pnt
Pnt2()
  • Returns the point on the first support.
Return type:gp_Pnt
Resolution()
Parameters:
  • IC2d (int) –
  • Tol (float) –
  • TolU (float &) –
  • TolV (float &) –
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:
Return type:

bool

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:
Return type:

bool

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

void

IsTangencyPoint()
  • Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnC.
Return type:bool
ParameterOnC()
  • Returns parameter of the point on the curve.
Return type:float
Pnt2d()
  • Returns U,V coordinates of the point on the surface.
Return type:gp_Pnt2d
PointOnC()
  • Returns the point on the curve.
Return type:gp_Pnt
PointOnS()
  • Returns the point on the surface.
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:
Return type:

bool

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:
Return type:

bool

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
TangentOnC()
  • Returns the tangent vector at PointOnC, in 3d space.
Return type:gp_Vec
TangentOnS()
  • Returns the tangent vector at PointOnS, in 3d space.
Return type:gp_Vec
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:

bool

Set()
  • Set the Point on which a solution has to be found.
Parameters:P (gp_Pnt) –
Return type:void
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:

bool

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

bool

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:
Return type:

bool

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
TangentOnS1()
  • Returns the tangent vector at PointOnS1, in 3d space.
Return type:gp_Vec
TangentOnS2()
  • Returns the tangent vector at PointOnS2, in 3d space.
Return type:gp_Vec
TwistOnS1()
Return type:bool
TwistOnS2()
Return type:bool
thisown

The membership flag

class Blend_Point(*args)

Bases: object

Return type:None
  • Creates a point on 2 surfaces, with tangents.
Parameters:
Return type:

None

  • Creates a point on 2 surfaces, without tangents.
Parameters:
Return type:

None

  • Creates a point on a surface and a curve, with tangents.
Parameters:
Return type:

None

  • Creates a point on a surface and a curve, without tangents.
Parameters:
Return type:

None

  • Creates a point on a surface and a curve on surface, with tangents.
Parameters:
Return type:

None

  • Creates a point on a surface and a curve on surface, without tangents.
Parameters:
Return type:

None

  • Creates a point on two curves on surfaces, with tangents.
Parameters:
Return type:

None

  • Creates a point on two curves on surfaces, with tangents.
Parameters:
Return type:

None

IsTangencyPoint()
  • Returns Standard_True if it was not possible to compute the tangent vectors at PointOnS1 and/or PointOnS2.
Return type:bool
Parameter()
Return type:float
ParameterOnC()
Return type:float
ParameterOnC1()
Return type:float
ParameterOnC2()
Return type:float
ParametersOnS()
Parameters:
  • U (float &) –
  • V (float &) –
Return type:

None

ParametersOnS1()
Parameters:
  • U (float &) –
  • V (float &) –
Return type:

None

ParametersOnS2()
Parameters:
  • U (float &) –
  • V (float &) –
Return type:

None

PointOnC()
Return type:gp_Pnt
PointOnC1()
Return type:gp_Pnt
PointOnC2()
Return type:gp_Pnt
PointOnS()
Return type:gp_Pnt
PointOnS1()
Return type:gp_Pnt
PointOnS2()
Return type:gp_Pnt
SetParameter()
  • Changes parameter on existing point
Parameters:Param (float) –
Return type:None
SetValue()
  • Set the values for a point on 2 surfaces, with tangents.
Parameters:
Return type:

None

  • Set the values for a point on 2 surfaces, without tangents.
Parameters:
Return type:

None

  • Set the values for a point on a surface and a curve, with tangents.
Parameters:
Return type:

None

  • Set the values for a point on a surface and a curve, without tangents.
Parameters:
Return type:

None

  • Creates a point on a surface and a curve on surface, with tangents.
Parameters:
Return type:

None

  • Creates a point on a surface and a curve on surface, without tangents.
Parameters:
Return type:

None

  • Creates a point on two curves on surfaces, with tangents.
Parameters:
Return type:

None

  • Creates a point on two curves on surfaces, without tangents.
Parameters:
Return type:

None

  • Creates a point on two curves.
Parameters:
Return type:

None

Tangent2d()
Return type:gp_Vec2d
Tangent2dOnS1()
Return type:gp_Vec2d
Tangent2dOnS2()
Return type:gp_Vec2d
TangentOnC()
Return type:gp_Vec
TangentOnC1()
Return type:gp_Vec
TangentOnC2()
Return type:gp_Vec
TangentOnS()
Return type:gp_Vec
TangentOnS1()
Return type:gp_Vec
TangentOnS2()
Return type:gp_Vec
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:
  • BoundTol (float) –
  • SurfTol (float) –
  • AngleTol (float) –
  • Tol3d (math_Vector &) –
  • Tol1D (math_Vector &) –
Return type:

void

IsTangencyPoint()
  • Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnRst.
Return type:bool
ParameterOnRst1()
  • Returns parameter of the point on the curve.
Return type:float
ParameterOnRst2()
  • Returns parameter of the point on the curve.
Return type:float
Pnt2dOnRst1()
  • Returns U,V coordinates of the point on the surface.
Return type:gp_Pnt2d
Pnt2dOnRst2()
  • Returns U,V coordinates of the point on the curve on surface.
Return type:gp_Pnt2d
PointOnRst1()
  • Returns the point on the surface.
Return type:gp_Pnt
PointOnRst2()
  • Returns the point on the curve.
Return type:gp_Pnt
Section()
Parameters:
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:
Return type:

bool

  • 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

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
TangentOnRst1()
  • Returns the tangent vector at PointOnS, in 3d space.
Return type:gp_Vec
TangentOnRst2()
  • Returns the tangent vector at PointOnC, in 3d space.
Return type:gp_Vec
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:

None

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:

None

Return type:

None

Assign()
Parameters:Other (Blend_SequenceOfPoint &) –
Return type:Blend_SequenceOfPoint
ChangeValue()
Parameters:Index (int) –
Return type:Blend_Point
Clear()
Return type:None
First()
Return type:Blend_Point
InsertAfter()
Parameters:
  • Index (int) –
  • T (Blend_Point &) –
  • Index
  • S (Blend_SequenceOfPoint &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • T (Blend_Point &) –
  • Index
  • S (Blend_SequenceOfPoint &) –
Return type:

None

Return type:

None

Last()
Return type:Blend_Point
Prepend()
Parameters:
  • T (Blend_Point &) –
  • S (Blend_SequenceOfPoint &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

Set()
Parameters:Other (Blend_SequenceOfPoint &) –
Return type:Blend_SequenceOfPoint
SetValue()
Parameters:
  • Index (int) –
  • I (Blend_Point &) –
Return type:

None

Split()
Parameters:
  • Index (int) –
  • Sub (Blend_SequenceOfPoint &) –
Return type:

None

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:

bool

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:

bool

Set()
  • Set the Point on which a solution has to be found.
Parameters:P (gp_Pnt) –
Return type:void
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:

bool

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

void

IsTangencyPoint()
  • Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnRst.
Return type:bool
ParameterOnRst()
  • Returns parameter of the point on the curve.
Return type:float
Pnt2dOnRst()
  • Returns U,V coordinates of the point on the curve on surface.
Return type:gp_Pnt2d
Pnt2dOnS()
  • Returns U,V coordinates of the point on the surface.
Return type:gp_Pnt2d
PointOnRst()
  • Returns the point on the curve.
Return type:gp_Pnt
PointOnS()
  • Returns the point on the surface.
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:
Return type:

bool

  • 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

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
TangentOnRst()
  • Returns the tangent vector at PointOnC, in 3d space.
Return type:gp_Vec
TangentOnS()
  • Returns the tangent vector at PointOnS, in 3d space.
Return type:gp_Vec
thisown

The membership flag

class Handle_Blend_SequenceNodeOfSequenceOfPoint(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

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