OpenCascade.js
API ReferenceModelingAlgorithmsTKFillet

Blend

OCCT package Blend: Blend_AppFunction, Blend_CSFunction, Blend_CurvPointFuncInv, Blend_DecrochStatus, and 8 more bound classes.

Blend_AppFunction

Deferred class for a function used to compute a blending surface between two surfaces, using a guide line. The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates U1,V1, U2,V2, of the extremities of a section on the first and second surface.

Instance methods(27)

  • NbVariables(): number

    returns the number of variables of the function.

  • NbEquations(): number

    returns the number of equations of the function.

  • Value(X: math_Vector, F: math_Vector): boolean

    computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • F
  • Derivatives(X: math_Vector, D: math_Matrix): boolean

    returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • D
  • Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean

    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 (3)
    • X
    • F
    • D
  • Set(Param: number): void

    Sets the value of the parameter along the guide line. This determines the plane in which the solution has to be found.

    Parameters (1)
    • Param
  • Set(First: number, Last: number): 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 (2)
    • First
    • Last
  • GetTolerance(Tolerance: math_Vector, Tol: number): void

    Returns in the vector Tolerance the parametric tolerance for each of the 4 variables; Tol is the tolerance used in 3d space.

    Parameters (2)
    • Tolerance
    • Tol
  • GetTolerance(BoundTol: number, SurfTol: number, AngleTol: number, Tol3d: math_Vector, Tol1D: math_Vector): void

    Returns the tolerance to reach in approximation to respect BoundTol error at the Boundary AngleTol tangent error at the Boundary SurfTol error inside the surface.

    Parameters (5)
    • BoundTol
    • SurfTol
    • AngleTol
    • Tol3d
    • Tol1D
  • GetBounds(InfBound: math_Vector, SupBound: math_Vector): void

    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 (2)
    • InfBound
    • SupBound
  • IsSolution(Sol: math_Vector, Tol: number): boolean

    Returns 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 (2)
    • Sol
    • Tol
  • Returns the minimal Distance between two extremities of calculated sections.

  • Returns the point on the first support.

  • Returns the point on the first support.

  • IsRational(): boolean

    Returns if the section is rational.

  • GetSectionSize(): number

    Returns the length of the maximum section.

  • Compute the minimal value of weight for each poles of all sections.

    Parameters (1)
    • Weigths
      Mutated in place; read the updated value from this argument after the call.
  • Returns the number of intervals for continuity . May be one if Continuity(me) >= .

    Parameters (1)
    • S
  • Stores in <T> the parameters bounding the intervals of continuity .
    The array must provide enough room to accommodate for the parameters. i.e. T.Length() > NbIntervals() raises OutOfRange from Standard

    Parameters (2)
    • T
      Mutated in place; read the updated value from this argument after the call.
    • S
  • GetShape(NbPoles: number, NbKnots: number, Degree: number, NbPoles2d: number): { NbPoles: number; NbKnots: number; Degree: number; NbPoles2d: number }
    Parameters (4)
    • NbPoles
    • NbKnots
    • Degree
    • NbPoles2d
  • Parameters (1)
    • TKnots
  • Parameters (1)
    • TMults
  • Used for the first and last section The method returns true if the derivatives are computed, otherwise it returns false.

    Parameters (7)
    • P
    • Poles
      Mutated in place; read the updated value from this argument after the call.
    • DPoles
      Mutated in place; read the updated value from this argument after the call.
    • Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • DPoles2d
      Mutated in place; read the updated value from this argument after the call.
    • Weigths
      Mutated in place; read the updated value from this argument after the call.
    • DWeigths
      Mutated in place; read the updated value from this argument after the call.
  • Parameters (4)
    • P
    • Poles
    • Poles2d
    • Weigths
  • Used for the first and last section The method returns true if the derivatives are computed, otherwise it returns false.

    Parameters (10)
    • P
    • Poles
      Mutated in place; read the updated value from this argument after the call.
    • DPoles
      Mutated in place; read the updated value from this argument after the call.
    • D2Poles
      Mutated in place; read the updated value from this argument after the call.
    • Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • DPoles2d
      Mutated in place; read the updated value from this argument after the call.
    • D2Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • Weigths
      Mutated in place; read the updated value from this argument after the call.
    • DWeigths
      Mutated in place; read the updated value from this argument after the call.
    • D2Weigths
      Mutated in place; read the updated value from this argument after the call.
  • Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
    Parameters (4)
    • IC2d
    • Tol
    • TolU
    • TolV
  • Returns the parameter of the point P. Used to impose the parameters in the approximation.

    Parameters (1)
    • P

Blend_CSFunction

Deferred class for a function used to compute a blending surface between a surface and a curve, using a guide line. The vector <X> used in Value, Values and Derivatives methods may be the vector of the parametric coordinates U,V, W of the extremities of a section on the surface and the curve.

Instance methods(29)

  • NbVariables(): number

    Returns 3 (default value). Can be redefined.

  • NbEquations(): number

    returns the number of equations of the function.

  • Value(X: math_Vector, F: math_Vector): boolean

    computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • F
  • Derivatives(X: math_Vector, D: math_Matrix): boolean

    returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • D
  • Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean

    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 (3)
    • X
    • F
    • D
  • Set(Param: number): void

    Sets the value of the parameter along the guide line. This determines the plane in which the solution has to be found.

    Parameters (1)
    • Param
  • Set(First: number, Last: number): 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 (2)
    • First
    • Last
  • GetTolerance(Tolerance: math_Vector, Tol: number): void

    Returns in the vector Tolerance the parametric tolerance for each of the 3 variables; Tol is the tolerance used in 3d space.

    Parameters (2)
    • Tolerance
    • Tol
  • GetTolerance(BoundTol: number, SurfTol: number, AngleTol: number, Tol3d: math_Vector, Tol1D: math_Vector): void

    Returns the tolerance to reach in approximation to respect BoundTol error at the Boundary AngleTol tangent error at the Boundary SurfTol error inside the surface.

    Parameters (5)
    • BoundTol
    • SurfTol
    • AngleTol
    • Tol3d
    • Tol1D
  • GetBounds(InfBound: math_Vector, SupBound: math_Vector): void

    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 (2)
    • InfBound
    • SupBound
  • IsSolution(Sol: math_Vector, Tol: number): boolean

    Returns 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 (2)
    • Sol
    • Tol
  • Returns the minimal Distance between two extremities of calculated sections.

  • Returns the point on the first support.

  • Returns the point on the second support.

  • Returns the point on the surface.

  • Returns the point on the curve.

  • Returns U,V coordinates of the point on the surface.

  • ParameterOnC(): number

    Returns parameter of the point on the curve.

  • IsTangencyPoint(): boolean

    Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnC.

  • Returns the tangent vector at PointOnS, in 3d space.

  • Returns the tangent vector at PointOnS, in the parametric space of the first surface.

  • Returns the tangent vector at PointOnC, in 3d space.

  • Tangent(U: number, V: number, TgS: gp_Vec, NormS: gp_Vec): void

    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 (4)
    • U
    • V
    • TgS
      Mutated in place; read the updated value from this argument after the call.
    • NormS
      Mutated in place; read the updated value from this argument after the call.
  • GetShape(NbPoles: number, NbKnots: number, Degree: number, NbPoles2d: number): { NbPoles: number; NbKnots: number; Degree: number; NbPoles2d: number }
    Parameters (4)
    • NbPoles
    • NbKnots
    • Degree
    • NbPoles2d
  • Parameters (1)
    • TKnots
  • Parameters (1)
    • TMults
  • Used for the first and last section The method returns true if the derivatives are computed, otherwise it returns false.

    Parameters (7)
    • P
    • Poles
      Mutated in place; read the updated value from this argument after the call.
    • DPoles
      Mutated in place; read the updated value from this argument after the call.
    • Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • DPoles2d
      Mutated in place; read the updated value from this argument after the call.
    • Weigths
      Mutated in place; read the updated value from this argument after the call.
    • DWeigths
      Mutated in place; read the updated value from this argument after the call.
  • Parameters (4)
    • P
    • Poles
    • Poles2d
    • Weigths
  • Used for the first and last section The method returns true if the derivatives are computed, otherwise it returns false.

    Parameters (10)
    • P
    • Poles
      Mutated in place; read the updated value from this argument after the call.
    • DPoles
      Mutated in place; read the updated value from this argument after the call.
    • D2Poles
      Mutated in place; read the updated value from this argument after the call.
    • Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • DPoles2d
      Mutated in place; read the updated value from this argument after the call.
    • D2Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • Weigths
      Mutated in place; read the updated value from this argument after the call.
    • DWeigths
      Mutated in place; read the updated value from this argument after the call.
    • D2Weigths
      Mutated in place; read the updated value from this argument after the call.

Blend_CurvPointFuncInv

Deferred class for a function used to compute a blending surface between a surface and a curve, using a guide line. This function is used to find a solution on a done point of the curve. The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates w, U, V where w is the parameter on the guide line, U,V are the parametric coordinates of a point on the partner surface.

Instance methods(9)

  • NbVariables(): number

    Returns 3.

  • NbEquations(): number

    returns the number of equations of the function.

  • Value(X: math_Vector, F: math_Vector): boolean

    computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • F
  • Derivatives(X: math_Vector, D: math_Matrix): boolean

    returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • D
  • Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean

    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 (3)
    • X
    • F
    • D
  • Set(P: gp_Pnt): void

    Set the Point on which a solution has to be found.

    Parameters (1)
    • P
  • GetTolerance(Tolerance: math_Vector, Tol: number): void

    Returns in the vector Tolerance the parametric tolerance for each of the 3 variables; Tol is the tolerance used in 3d space.

    Parameters (2)
    • Tolerance
    • Tol
  • GetBounds(InfBound: math_Vector, SupBound: math_Vector): void

    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 (2)
    • InfBound
    • SupBound
  • IsSolution(Sol: math_Vector, Tol: number): boolean

    Returns true if Sol is a zero of the function. Tol is the tolerance used in 3d space.

    Parameters (2)
    • Sol
    • Tol

Blend_FuncInv

Deferred class for a function used to compute a blending surface between two surfaces, using a guide line. This function is used to find a solution on a restriction of one of the surface. The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates t,w,U,V where t is the parameter on the curve on surface, w is the parameter on the guide line, U,V are the parametric coordinates of a point on the partner surface.

Instance methods(9)

  • NbVariables(): number

    Returns 4.

  • NbEquations(): number

    returns the number of equations of the function.

  • Value(X: math_Vector, F: math_Vector): boolean

    computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • F
  • Derivatives(X: math_Vector, D: math_Matrix): boolean

    returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • D
  • Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean

    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 (3)
    • X
    • F
    • D
  • Set(OnFirst: boolean, COnSurf: Adaptor2d_Curve2d): void

    Sets the CurveOnSurface on which a solution has to be found. If <OnFirst> is set to true, the curve will be on the first surface, otherwise the curve is on the second one.

    Parameters (2)
    • OnFirst
    • COnSurf
  • GetTolerance(Tolerance: math_Vector, Tol: number): void

    Returns in the vector Tolerance the parametric tolerance for each of the 4 variables; Tol is the tolerance used in 3d space.

    Parameters (2)
    • Tolerance
    • Tol
  • GetBounds(InfBound: math_Vector, SupBound: math_Vector): void

    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 (2)
    • InfBound
    • SupBound
  • IsSolution(Sol: math_Vector, Tol: number): boolean

    Returns true if Sol is a zero of the function. Tol is the tolerance used in 3d space.

    Parameters (2)
    • Sol
    • Tol

Blend_Function

Deferred class for a function used to compute a blending surface between two surfaces, using a guide line. The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates U1,V1, U2,V2, of the extremities of a section on the first and second surface.

Instance methods(16)

Blend_Point

Constructors(9)

Instance methods(33)

Blend_RstRstFunction

Deferred class for a function used to compute a blending surface between a surface and a pcurve on an other Surface, using a guide line. The vector <X> used in Value, Values and Derivatives methods may be the vector of the parametric coordinates U,V, W of the extremities of a section on the surface and the curve.

Instance methods(37)

  • NbVariables(): number

    Returns 2 (default value). Can be redefined.

  • NbEquations(): number

    returns the number of equations of the function.

  • Value(X: math_Vector, F: math_Vector): boolean

    computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • F
  • Derivatives(X: math_Vector, D: math_Matrix): boolean

    returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • D
  • Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean

    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 (3)
    • X
    • F
    • D
  • Set(Param: number): void

    Sets the value of the parameter along the guide line. This determines the plane in which the solution has to be found.

    Parameters (1)
    • Param
  • Set(First: number, Last: number): 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 (2)
    • First
    • Last
  • GetTolerance(Tolerance: math_Vector, Tol: number): void

    Returns in the vector Tolerance the parametric tolerance for each variable; Tol is the tolerance used in 3d space.

    Parameters (2)
    • Tolerance
    • Tol
  • GetTolerance(BoundTol: number, SurfTol: number, AngleTol: number, Tol3d: math_Vector, Tol1D: math_Vector): void

    Returns the tolerance to reach in approximation to respect BoundTol error at the Boundary AngleTol tangent error at the Boundary SurfTol error inside the surface.

    Parameters (5)
    • BoundTol
    • SurfTol
    • AngleTol
    • Tol3d
    • Tol1D
  • GetBounds(InfBound: math_Vector, SupBound: math_Vector): void

    Returns in the vector InfBound the lowest values allowed for each variables. Returns in the vector SupBound the greatest values allowed for each of the 3 variables.

    Parameters (2)
    • InfBound
    • SupBound
  • IsSolution(Sol: math_Vector, Tol: number): boolean

    Returns 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 (2)
    • Sol
    • Tol
  • Returns the minimal Distance between two extremities of calculated sections.

  • Returns the point on the first support.

  • Returns the point on the second support.

  • Returns the point on the surface.

  • Returns the point on the curve.

  • Returns U,V coordinates of the point on the surface.

  • Returns U,V coordinates of the point on the curve on surface.

  • ParameterOnRst1(): number

    Returns parameter of the point on the curve.

  • ParameterOnRst2(): number

    Returns parameter of the point on the curve.

  • IsTangencyPoint(): boolean

    Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnRst.

  • Returns the tangent vector at PointOnS, in 3d space.

  • Returns the tangent vector at PointOnS, in the parametric space of the first surface.

  • Returns the tangent vector at PointOnC, in 3d space.

  • Returns the tangent vector at PointOnRst, in the parametric space of the second surface.

  • Decroch(Sol: math_Vector, NRst1: gp_Vec, TgRst1: gp_Vec, NRst2: gp_Vec, TgRst2: gp_Vec): Blend_DecrochStatus

    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 (5)
    • Sol
    • NRst1
      Mutated in place; read the updated value from this argument after the call.
    • TgRst1
      Mutated in place; read the updated value from this argument after the call.
    • NRst2
      Mutated in place; read the updated value from this argument after the call.
    • TgRst2
      Mutated in place; read the updated value from this argument after the call.
  • IsRational(): boolean

    Returns if the section is rational.

  • GetSectionSize(): number

    Returns the length of the maximum section.

  • Compute the minimal value of weight for each poles of all sections.

    Parameters (1)
    • Weigths
      Mutated in place; read the updated value from this argument after the call.
  • Returns the number of intervals for continuity . May be one if Continuity(me) >= .

    Parameters (1)
    • S
  • Stores in <T> the parameters bounding the intervals of continuity .
    The array must provide enough room to accommodate for the parameters. i.e. T.Length() > NbIntervals()

    Parameters (2)
    • T
      Mutated in place; read the updated value from this argument after the call.
    • S
  • GetShape(NbPoles: number, NbKnots: number, Degree: number, NbPoles2d: number): { NbPoles: number; NbKnots: number; Degree: number; NbPoles2d: number }
    Parameters (4)
    • NbPoles
    • NbKnots
    • Degree
    • NbPoles2d
  • Parameters (1)
    • TKnots
  • Parameters (1)
    • TMults
  • Parameters (4)
    • P
    • Poles
    • Poles2d
    • Weigths
  • Used for the first and last section The method returns true if the derivatives are computed, otherwise it returns false.

    Parameters (7)
    • P
    • Poles
      Mutated in place; read the updated value from this argument after the call.
    • DPoles
      Mutated in place; read the updated value from this argument after the call.
    • Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • DPoles2d
      Mutated in place; read the updated value from this argument after the call.
    • Weigths
      Mutated in place; read the updated value from this argument after the call.
    • DWeigths
      Mutated in place; read the updated value from this argument after the call.
  • Used for the first and last section The method returns true if the derivatives are computed, otherwise it returns false.

    Parameters (10)
    • P
    • Poles
      Mutated in place; read the updated value from this argument after the call.
    • DPoles
      Mutated in place; read the updated value from this argument after the call.
    • D2Poles
      Mutated in place; read the updated value from this argument after the call.
    • Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • DPoles2d
      Mutated in place; read the updated value from this argument after the call.
    • D2Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • Weigths
      Mutated in place; read the updated value from this argument after the call.
    • DWeigths
      Mutated in place; read the updated value from this argument after the call.
    • D2Weigths
      Mutated in place; read the updated value from this argument after the call.

Blend_SurfCurvFuncInv

Deferred class for a function used to compute a blending surface between a surface and a curve, using a guide line. This function is used to find a solution on a done restriction of the surface.
The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates wguide, wcurv, wrst where wguide is the parameter on the guide line, wcurv is the parameter on the curve, wrst is the parameter on the restriction on the surface.

Instance methods(9)

  • NbVariables(): number

    Returns 3.

  • NbEquations(): number

    returns the number of equations of the function.

  • Value(X: math_Vector, F: math_Vector): boolean

    computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • F
  • Derivatives(X: math_Vector, D: math_Matrix): boolean

    returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • D
  • Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean

    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 (3)
    • X
    • F
    • D
  • Set the Point on which a solution has to be found.

    Parameters (1)
    • Rst
  • GetTolerance(Tolerance: math_Vector, Tol: number): void

    Returns in the vector Tolerance the parametric tolerance for each of the 3 variables; Tol is the tolerance used in 3d space.

    Parameters (2)
    • Tolerance
    • Tol
  • GetBounds(InfBound: math_Vector, SupBound: math_Vector): void

    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 (2)
    • InfBound
    • SupBound
  • IsSolution(Sol: math_Vector, Tol: number): boolean

    Returns true if Sol is a zero of the function. Tol is the tolerance used in 3d space.

    Parameters (2)
    • Sol
    • Tol

Blend_SurfPointFuncInv

Deferred class for a function used to compute a blending surface between a surface and a curve, using a guide line. This function is used to find a solution on a done point of the curve.
The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates w, U, V where w is the parameter on the guide line, U,V are the parametric coordinates of a point on the partner surface.

Instance methods(9)

  • NbVariables(): number

    Returns 3.

  • NbEquations(): number

    returns the number of equations of the function.

  • Value(X: math_Vector, F: math_Vector): boolean

    computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • F
  • Derivatives(X: math_Vector, D: math_Matrix): boolean

    returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • D
  • Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean

    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 (3)
    • X
    • F
    • D
  • Set(P: gp_Pnt): void

    Set the Point on which a solution has to be found.

    Parameters (1)
    • P
  • GetTolerance(Tolerance: math_Vector, Tol: number): void

    Returns in the vector Tolerance the parametric tolerance for each of the 3 variables; Tol is the tolerance used in 3d space.

    Parameters (2)
    • Tolerance
    • Tol
  • GetBounds(InfBound: math_Vector, SupBound: math_Vector): void

    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 (2)
    • InfBound
    • SupBound
  • IsSolution(Sol: math_Vector, Tol: number): boolean

    Returns true if Sol is a zero of the function. Tol is the tolerance used in 3d space.

    Parameters (2)
    • Sol
    • Tol

Blend_SurfRstFunction

Deferred class for a function used to compute a blending surface between a surface and a pcurve on an other Surface, using a guide line. The vector <X> used in Value, Values and Derivatives methods may be the vector of the parametric coordinates U,V, W of the extremities of a section on the surface and the curve.

Instance methods(36)

  • NbVariables(): number

    Returns 3 (default value). Can be redefined.

  • NbEquations(): number

    returns the number of equations of the function.

  • Value(X: math_Vector, F: math_Vector): boolean

    computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • F
  • Derivatives(X: math_Vector, D: math_Matrix): boolean

    returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • D
  • Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean

    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 (3)
    • X
    • F
    • D
  • Set(Param: number): void

    Sets the value of the parameter along the guide line. This determines the plane in which the solution has to be found.

    Parameters (1)
    • Param
  • Set(First: number, Last: number): 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 (2)
    • First
    • Last
  • GetTolerance(Tolerance: math_Vector, Tol: number): void

    Returns in the vector Tolerance the parametric tolerance for each variable. Tol is the tolerance used in 3d space.

    Parameters (2)
    • Tolerance
    • Tol
  • GetTolerance(BoundTol: number, SurfTol: number, AngleTol: number, Tol3d: math_Vector, Tol1D: math_Vector): void

    Returns the tolerance to reach in approximation to respect BoundTol error at the Boundary AngleTol tangent error at the Boundary SurfTol error inside the surface.

    Parameters (5)
    • BoundTol
    • SurfTol
    • AngleTol
    • Tol3d
    • Tol1D
  • GetBounds(InfBound: math_Vector, SupBound: math_Vector): void

    Returns in the vector InfBound the lowest values allowed for each variable. Returns in the vector SupBound the greatest values allowed for each of the 3 variables.

    Parameters (2)
    • InfBound
    • SupBound
  • IsSolution(Sol: math_Vector, Tol: number): boolean

    Returns 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 (2)
    • Sol
    • Tol
  • Returns the minimal Distance between two extremities of calculated sections.

  • Returns the point on the first support.

  • Returns the point on the second support.

  • Returns the point on the surface.

  • Returns the point on the curve.

  • Returns U,V coordinates of the point on the surface.

  • Returns U,V coordinates of the point on the curve on surface.

  • ParameterOnRst(): number

    Returns parameter of the point on the curve.

  • IsTangencyPoint(): boolean

    Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnRst.

  • Returns the tangent vector at PointOnS, in 3d space.

  • Returns the tangent vector at PointOnS, in the parametric space of the first surface.

  • Returns the tangent vector at PointOnC, in 3d space.

  • Returns the tangent vector at PointOnRst, in the parametric space of the second surface.

  • Decroch(Sol: math_Vector, NS: gp_Vec, TgS: gp_Vec): boolean

    Enables implementation of a criterion of decrochage specific to the function.

    Parameters (3)
    • Sol
    • NS
      Mutated in place; read the updated value from this argument after the call.
    • TgS
      Mutated in place; read the updated value from this argument after the call.
  • IsRational(): boolean

    Returns if the section is rational.

  • GetSectionSize(): number

    Returns the length of the maximum section.

  • Compute the minimal value of weight for each poles of all sections.

    Parameters (1)
    • Weigths
      Mutated in place; read the updated value from this argument after the call.
  • Returns the number of intervals for continuity . May be one if Continuity(me) >= .

    Parameters (1)
    • S
  • Stores in <T> the parameters bounding the intervals of continuity .
    The array must provide enough room to accommodate for the parameters. i.e. T.Length() > NbIntervals()

    Parameters (2)
    • T
      Mutated in place; read the updated value from this argument after the call.
    • S
  • GetShape(NbPoles: number, NbKnots: number, Degree: number, NbPoles2d: number): { NbPoles: number; NbKnots: number; Degree: number; NbPoles2d: number }
    Parameters (4)
    • NbPoles
    • NbKnots
    • Degree
    • NbPoles2d
  • Parameters (1)
    • TKnots
  • Parameters (1)
    • TMults
  • Used for the first and last section The method returns true if the derivatives are computed, otherwise it returns false.

    Parameters (7)
    • P
    • Poles
      Mutated in place; read the updated value from this argument after the call.
    • DPoles
      Mutated in place; read the updated value from this argument after the call.
    • Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • DPoles2d
      Mutated in place; read the updated value from this argument after the call.
    • Weigths
      Mutated in place; read the updated value from this argument after the call.
    • DWeigths
      Mutated in place; read the updated value from this argument after the call.
  • Used for the first and last section The method returns true if the derivatives are computed, otherwise it returns false.

    Parameters (10)
    • P
    • Poles
      Mutated in place; read the updated value from this argument after the call.
    • DPoles
      Mutated in place; read the updated value from this argument after the call.
    • D2Poles
      Mutated in place; read the updated value from this argument after the call.
    • Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • DPoles2d
      Mutated in place; read the updated value from this argument after the call.
    • D2Poles2d
      Mutated in place; read the updated value from this argument after the call.
    • Weigths
      Mutated in place; read the updated value from this argument after the call.
    • DWeigths
      Mutated in place; read the updated value from this argument after the call.
    • D2Weigths
      Mutated in place; read the updated value from this argument after the call.
  • Parameters (4)
    • P
    • Poles
    • Poles2d
    • Weigths