OCC.Blend module

class OCC.Blend.Blend_AppFunction(*args, **kwargs)

Bases: object

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

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 (Standard_Integer &) –
  • NbKnots (Standard_Integer &) –
  • Degree (Standard_Integer &) –
  • NbPoles2d (Standard_Integer &) –
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
NbEquations()
  • returns the number of equations of the function.
Return type:int
NbIntervals()
  • Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
Parameters:S (GeomAbs_Shape) –
Return type:int
NbVariables()
  • returns the number of variables of the function.
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 (Standard_Integer) –
  • 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:
  • 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:

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

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:
  • First (float) –
  • Last (float) –
Return type:

void

Value()
  • computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

Values()
  • returns the values <F> of the functions and the derivatives <D> for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

thisown

The membership flag

class OCC.Blend.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:
  • 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:

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

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:
  • First (float) –
  • Last (float) –
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:
  • U (float) –
  • V (float) –
  • TgS (gp_Vec) –
  • NormS (gp_Vec) –
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 OCC.Blend.Blend_CurvPointFuncInv(*args, **kwargs)

Bases: object

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

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

NbEquations()
  • returns the number of equations of the function.
Return type:int
NbVariables()
  • Returns 3.
Return type:int
Set()
  • Set the Point on which a solution has to be found.
Parameters:P (gp_Pnt) –
Return type:void
Value()
  • computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

Values()
  • returns the values <F> of the functions and the derivatives <D> for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

thisown

The membership flag

class OCC.Blend.Blend_FuncInv(*args, **kwargs)

Bases: object

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

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

NbEquations()
  • returns the number of equations of the function.
Return type:int
NbVariables()
  • Returns 4.
Return type:int
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

Value()
  • computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

Values()
  • returns the values <F> of the functions and the derivatives <D> for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

thisown

The membership flag

class OCC.Blend.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:
  • 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:

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

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:
  • First (float) –
  • Last (float) –
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:
  • U1 (float) –
  • V1 (float) –
  • U2 (float) –
  • V2 (float) –
  • TgFirst (gp_Vec) –
  • TgLast (gp_Vec) –
  • NormFirst (gp_Vec) –
  • NormLast (gp_Vec) –
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 OCC.Blend.Blend_Point(*args)

Bases: object

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
SetValue()
  • Set the values for a point on 2 surfaces, with tangents.
Parameters:
  • Pt1 (gp_Pnt) –
  • Pt2 (gp_Pnt) –
  • Param (float) –
  • U1 (float) –
  • V1 (float) –
  • U2 (float) –
  • V2 (float) –
  • Tg1 (gp_Vec) –
  • Tg2 (gp_Vec) –
  • Tg12d (gp_Vec2d) –
  • Tg22d (gp_Vec2d) –
Return type:

None

  • Set the values for a point on 2 surfaces, without tangents.
Parameters:
  • Pt1 (gp_Pnt) –
  • Pt2 (gp_Pnt) –
  • Param (float) –
  • U1 (float) –
  • V1 (float) –
  • U2 (float) –
  • V2 (float) –
Return type:

None

  • Set the values for a point on a surface and a curve, with tangents.
Parameters:
  • Pts (gp_Pnt) –
  • Ptc (gp_Pnt) –
  • Param (float) –
  • U (float) –
  • V (float) –
  • W (float) –
  • Tgs (gp_Vec) –
  • Tgc (gp_Vec) –
  • Tg2d (gp_Vec2d) –
Return type:

None

  • Set the values for a point on a surface and a curve, without tangents.
Parameters:
  • Pts (gp_Pnt) –
  • Ptc (gp_Pnt) –
  • Param (float) –
  • U (float) –
  • V (float) –
  • W (float) –
Return type:

None

  • Creates a point on a surface and a curve on surface, with tangents.
Parameters:
  • Pt1 (gp_Pnt) –
  • Pt2 (gp_Pnt) –
  • Param (float) –
  • U1 (float) –
  • V1 (float) –
  • U2 (float) –
  • V2 (float) –
  • PC (float) –
  • Tg1 (gp_Vec) –
  • Tg2 (gp_Vec) –
  • Tg12d (gp_Vec2d) –
  • Tg22d (gp_Vec2d) –
Return type:

None

  • Creates a point on a surface and a curve on surface, without tangents.
Parameters:
  • Pt1 (gp_Pnt) –
  • Pt2 (gp_Pnt) –
  • Param (float) –
  • U1 (float) –
  • V1 (float) –
  • U2 (float) –
  • V2 (float) –
  • PC (float) –
Return type:

None

  • Creates a point on two curves on surfaces, with tangents.
Parameters:
  • Pt1 (gp_Pnt) –
  • Pt2 (gp_Pnt) –
  • Param (float) –
  • U1 (float) –
  • V1 (float) –
  • U2 (float) –
  • V2 (float) –
  • PC1 (float) –
  • PC2 (float) –
  • Tg1 (gp_Vec) –
  • Tg2 (gp_Vec) –
  • Tg12d (gp_Vec2d) –
  • Tg22d (gp_Vec2d) –
Return type:

None

  • Creates a point on two curves on surfaces, without tangents.
Parameters:
  • Pt1 (gp_Pnt) –
  • Pt2 (gp_Pnt) –
  • Param (float) –
  • U1 (float) –
  • V1 (float) –
  • U2 (float) –
  • V2 (float) –
  • PC1 (float) –
  • PC2 (float) –
Return type:

None

  • Creates a point on two curves.
Parameters:
  • Pt1 (gp_Pnt) –
  • Pt2 (gp_Pnt) –
  • Param (float) –
  • PC1 (float) –
  • PC2 (float) –
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 OCC.Blend.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:
  • Sol (math_Vector &) –
  • NRst1 (gp_Vec) –
  • TgRst1 (gp_Vec) –
  • NRst2 (gp_Vec) –
  • TgRst2 (gp_Vec) –
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:
  • 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:

bool

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

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:
  • First (float) –
  • Last (float) –
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 OCC.Blend.Blend_SequenceNodeOfSequenceOfPoint(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Blend_SequenceNodeOfSequenceOfPoint_GetHandle(Blend_SequenceNodeOfSequenceOfPoint self) -> Handle_Blend_SequenceNodeOfSequenceOfPoint

Value()
Return type:Blend_Point
thisown

The membership flag

class OCC.Blend.Blend_SequenceOfPoint

Bases: OCC.TCollection.TCollection_BaseSequence

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 (Standard_Integer) –
Return type:Blend_Point
Clear()
Return type:None
First()
Return type:Blend_Point
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Blend_Point &) –
  • Index
  • S (Blend_SequenceOfPoint &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • 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 (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

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

None

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

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Blend_Point
thisown

The membership flag

class OCC.Blend.Blend_SurfCurvFuncInv(*args, **kwargs)

Bases: object

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

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

NbEquations()
  • returns the number of equations of the function.
Return type:int
NbVariables()
  • Returns 3.
Return type:int
Set()
  • Set the Point on which a solution has to be found.
Parameters:Rst (Handle_Adaptor2d_HCurve2d &) –
Return type:void
Value()
  • computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

Values()
  • returns the values <F> of the functions and the derivatives <D> for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

thisown

The membership flag

class OCC.Blend.Blend_SurfPointFuncInv(*args, **kwargs)

Bases: object

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

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

NbEquations()
  • returns the number of equations of the function.
Return type:int
NbVariables()
  • Returns 3.
Return type:int
Set()
  • Set the Point on which a solution has to be found.
Parameters:P (gp_Pnt) –
Return type:void
Value()
  • computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

Values()
  • returns the values <F> of the functions and the derivatives <D> for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

thisown

The membership flag

class OCC.Blend.Blend_SurfRstFunction(*args, **kwargs)

Bases: OCC.Blend.Blend_AppFunction

Decroch()
  • Enables implementation of a criterion of decrochage specific to the function.
Parameters:
  • Sol (math_Vector &) –
  • NS (gp_Vec) –
  • TgS (gp_Vec) –
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:
  • P (Blend_Point &) –
  • Poles (TColgp_Array1OfPnt) –
  • DPoles (TColgp_Array1OfVec) –
  • Poles2d (TColgp_Array1OfPnt2d) –
  • DPoles2d (TColgp_Array1OfVec2d) –
  • Weigths (TColStd_Array1OfReal &) –
  • DWeigths (TColStd_Array1OfReal &) –
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:
  • 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:

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:
  • First (float) –
  • Last (float) –
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 OCC.Blend.Handle_Blend_SequenceNodeOfSequenceOfPoint(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.Blend.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()