OpenCascade.js
API ReferenceModelingAlgorithmsTKFillet

BlendFunc

OCCT package BlendFunc: BlendFunc, BlendFunc_Chamfer, BlendFunc_ChamfInv, BlendFunc_ChAsym, and 18 more bound classes.

BlendFunc

This package provides a set of generic functions, that can instantiated to compute blendings between two surfaces (Constant radius, Evolutive radius, Ruled surface).

Constructors(1)

Static methods(4)

BlendFunc_Chamfer

Class for a function used to compute a "ordinary" chamfer: when distances from spine to surfaces are constant.

Constructors(1)

Instance methods(15)

  • 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
  • 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(Dist1: number, Dist2: number, Choix: number): void

    Sets the distances and the "quadrant".

    Parameters (3)
    • Dist1
    • Dist2
    • Choix
  • Set(First: number, Last: 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 (2)
    • First
    • Last
  • 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 point on the first surface, at parameter Sol(1),Sol(2) (Sol is the vector used in the call of IsSolution.

  • Returns the point on the second surface, at parameter Sol(3),Sol(4) (Sol is the vector used in the call of IsSolution.

  • IsTangencyPoint(): boolean

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

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

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

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

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

  • Tangent(U1: number, V1: number, U2: number, V2: number, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: 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 (8)
    • U1
    • V1
    • U2
    • V2
    • TgFirst
      Mutated in place; read the updated value from this argument after the call.
    • TgLast
      Mutated in place; read the updated value from this argument after the call.
    • NormFirst
      Mutated in place; read the updated value from this argument after the call.
    • NormLast
      Mutated in place; read the updated value from this argument after the call.
  • GetSectionSize(): number

    Returns the length of the maximum section.

BlendFunc_ChamfInv

Class for a function used to compute a chamfer with two constant distances on a surface's boundary.

Constructors(1)

Instance methods(5)

  • 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
  • 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
  • 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
  • Set(Dist1: number, Dist2: number, Choix: number): void
    Parameters (3)
    • Dist1
    • Dist2
    • Choix

BlendFunc_ChAsym

Constructors(1)

Instance methods(36)

  • NbEquations(): number

    returns the number of equations of the function.

  • 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
  • Set(Dist1: number, Angle: number, Choix: number): void

    Sets the distances and the angle.

    Parameters (3)
    • Dist1
    • Angle
    • Choix
  • 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.

  • ComputeValues(X: math_Vector, DegF: number, DegL: number): boolean

    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 (3)
    • X
    • DegF
    • DegL
  • 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
  • Returns the point on the first surface, at parameter Sol(1),Sol(2) (Sol is the vector used in the call of IsSolution.

  • Returns the point on the second surface, at parameter Sol(3),Sol(4) (Sol is the vector used in the call of IsSolution.

  • IsTangencyPoint(): boolean

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

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

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

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

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

  • TwistOnS1(): boolean
  • TwistOnS2(): boolean
  • Tangent(U1: number, V1: number, U2: number, V2: number, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: 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 (8)
    • U1
    • V1
    • U2
    • V2
    • TgFirst
      Mutated in place; read the updated value from this argument after the call.
    • TgLast
      Mutated in place; read the updated value from this argument after the call.
    • NormFirst
      Mutated in place; read the updated value from this argument after the call.
    • NormLast
      Mutated in place; read the updated value from this argument after the call.
  • Section(Param: number, U1: number, V1: number, U2: number, V2: number, Pdeb: number, Pfin: number, C: gp_Lin): void

    Utile pour une visu rapide et approximative de la surface.

    Parameters (8)
    • Param
    • U1
    • V1
    • U2
    • V2
    • Pdeb
    • Pfin
    • C
      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.

    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.

    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.
  • 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
  • Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
    Parameters (4)
    • IC2d
    • Tol
    • TolU
    • TolV

BlendFunc_ChAsymInv

Constructors(1)

Instance methods(10)

  • 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
  • Set(Dist1: number, Angle: number, Choix: number): void
    Parameters (3)
    • Dist1
    • Angle
    • Choix
  • 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
  • NbEquations(): number

    returns the number of equations of the function.

  • ComputeValues(X: math_Vector, DegF: number, DegL: number): boolean

    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 (3)
    • X
    • DegF
    • DegL
  • 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

BlendFunc_ConstRad

Constructors(1)

Instance methods(37)

  • 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(TypeSection: BlendFunc_SectionShape): void

    Sets the type of section generation for the approximations.

    Parameters (1)
    • TypeSection
  • 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
  • Set(Radius: number, Choix: number): void

    Inits the value of radius, and the "quadrant".

    Parameters (2)
    • Radius
    • Choix
  • 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 surface, at parameter Sol(1),Sol(2) (Sol is the vector used in the call of IsSolution.

  • Returns the point on the second surface, at parameter Sol(3),Sol(4) (Sol is the vector used in the call of IsSolution.

  • IsTangencyPoint(): boolean

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

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

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

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

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

  • Tangent(U1: number, V1: number, U2: number, V2: number, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: 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 (8)
    • U1
    • V1
    • U2
    • V2
    • TgFirst
      Mutated in place; read the updated value from this argument after the call.
    • TgLast
      Mutated in place; read the updated value from this argument after the call.
    • NormFirst
      Mutated in place; read the updated value from this argument after the call.
    • NormLast
      Mutated in place; read the updated value from this argument after the call.
  • TwistOnS1(): boolean
  • TwistOnS2(): boolean
  • Section(Param: number, U1: number, V1: number, U2: number, V2: number, Pdeb: number, Pfin: number, C: gp_Circ): void

    Useful for a quick and approximate visualization of the surface area.

    Parameters (8)
    • Param
    • U1
    • V1
    • U2
    • V2
    • Pdeb
    • Pfin
    • C
      Mutated in place; read the updated value from this argument after the call.
  • Used for the first and last section.

    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.
  • Used for the first and last section.

    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
  • 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
  • AxeRot(Prm: number): gp_Ax1
    Parameters (1)
    • Prm
  • Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
    Parameters (4)
    • IC2d
    • Tol
    • TolU
    • TolV

BlendFunc_ConstRadInv

Constructors(1)

Instance methods(9)

  • 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
  • Set(R: number, Choix: number): void
    Parameters (2)
    • R
    • Choix
  • 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
  • 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

BlendFunc_ConstThroat

Class for a function used to compute a symmetric chamfer with constant throat that is the height of isosceles triangle in section.

Constructors(1)

Instance methods(15)

  • 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
  • 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(aThroat: number, argNo1: number, Choix: number): void

    Sets the throat and the "quadrant".

    Parameters (3)
    • aThroat
    • argNo1
    • Choix
  • Set(First: number, Last: 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 (2)
    • First
    • Last
  • 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 point on the first surface, at parameter Sol(1),Sol(2) (Sol is the vector used in the call of IsSolution.

  • Returns the point on the second surface, at parameter Sol(3),Sol(4) (Sol is the vector used in the call of IsSolution.

  • IsTangencyPoint(): boolean

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

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

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

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

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

  • Tangent(U1: number, V1: number, U2: number, V2: number, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: 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 (8)
    • U1
    • V1
    • U2
    • V2
    • TgFirst
      Mutated in place; read the updated value from this argument after the call.
    • TgLast
      Mutated in place; read the updated value from this argument after the call.
    • NormFirst
      Mutated in place; read the updated value from this argument after the call.
    • NormLast
      Mutated in place; read the updated value from this argument after the call.
  • GetSectionSize(): number

    Returns the length of the maximum section.

BlendFunc_ConstThroatInv

Class for a function used to compute a ConstThroat chamfer on a surface's boundary.

Constructors(1)

Instance methods(5)

  • 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
  • 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
  • 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
  • Set(Dist1: number, Dist2: number, Choix: number): void
    Parameters (3)
    • Dist1
    • Dist2
    • Choix

BlendFunc_ConstThroatWithPenetration

Class for a function used to compute a chamfer with constant throat: the section of chamfer is right-angled triangle, the first of two surfaces (where is the top of the chamfer) is virtually moved inside the solid by offset operation, the apex of the section is on the intersection curve between moved surface and second surface, right angle is at the top of the chamfer, the length of the leg from apex to top is constant - it is throat.

Constructors(1)

Instance methods(8)

  • 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
  • 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 tangent vector at PointOnS1, in 3d space.

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

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

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

  • GetSectionSize(): number

    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.
    Sets the throat and the "quadrant". Returns the length of the maximum section

BlendFunc_ConstThroatWithPenetrationInv

Class for a function used to compute a ConstThroatWithPenetration chamfer on a surface's boundary.

Constructors(1)

Instance methods(3)

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

BlendFunc_Corde

This function calculates point (pts) on the curve of intersection between the normal to a curve (guide) in a chosen parameter and a surface (surf), so that pts was at a given distance from the guide. X(1),X(2) are the parameters U,V of pts on surf.

Constructors(1)

Instance methods(12)

  • SetParam(Param: number): void
    Parameters (1)
    • Param
  • SetDist(Dist: number): void
    Parameters (1)
    • Dist
  • Value(X: math_Vector, F: math_Vector): boolean

    computes the values <F> of the Function 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
  • returns the point of parameter on CGuide

  • returns the normal to CGuide at Ptgui.

  • IsTangencyPoint(): boolean

    Returns True when it is not possible to compute the tangent vectors at PointOnS.

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

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

  • DerFguide(Sol: math_Vector, DerF: gp_Vec2d): void

    Derived of the function compared to the parameter of the guideline.

    Parameters (2)
    • Sol
    • DerF
      Mutated in place; read the updated value from this argument after the call.
  • IsSolution(Sol: math_Vector, Tol: number): boolean

    Returns False if Sol is not solution else returns True and updates the fields tgs and tg2d.

    Parameters (2)
    • Sol
    • Tol

BlendFunc_CSCircular

Constructors(1)

  • Creates a function for a circular blending between a curve and a surface . The direction of the planes are given by <CGuide>. The position of the plane is determined on the curve . <L> defines the change of parameter between 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 (4)
    • S
    • C
    • CGuide
    • L

Instance methods(36)

  • NbVariables(): number

    Returns 3 (default value). Can be redefined.

  • NbEquations(): number

    returns the number of equations of the function (3).

  • 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(TypeSection: BlendFunc_SectionShape): void

    Sets the type of section generation for the approximations.

    Parameters (1)
    • TypeSection
  • 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
  • Set(Radius: number, Choix: number): void
    Parameters (2)
    • Radius
    • Choix
  • 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 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 surface) 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.
  • Parameters (4)
    • P
    • Poles
    • Poles2d
    • Weigths
  • Section(Param: number, U: number, V: number, W: number, Pdeb: number, Pfin: number, C: gp_Circ): void
    Parameters (7)
    • Param
    • U
    • V
    • W
    • Pdeb
    • Pfin
    • C
  • Used for the first and last section.

    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.
  • GetSection(Param: number, U: number, V: number, W: number, tabP: NCollection_Array1_gp_Pnt, tabV: NCollection_Array1_gp_Vec): boolean
    Parameters (6)
    • Param
    • U
    • V
    • W
    • tabP
    • tabV
  • 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
  • Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
    Parameters (4)
    • IC2d
    • Tol
    • TolU
    • TolV

BlendFunc_CSConstRad

Constructors(1)

Instance methods(35)

  • NbEquations(): number

    returns the number of equations of the function (3).

  • 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(TypeSection: BlendFunc_SectionShape): void

    Sets the type of section generation for the approximations.

    Parameters (1)
    • TypeSection
  • 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
  • Set(Radius: number, Choix: number): void
    Parameters (2)
    • Radius
    • Choix
  • 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 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 surface) 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.
  • Parameters (4)
    • P
    • Poles
    • Poles2d
    • Weigths
  • Section(Param: number, U: number, V: number, W: number, Pdeb: number, Pfin: number, C: gp_Circ): void
    Parameters (7)
    • Param
    • U
    • V
    • W
    • Pdeb
    • Pfin
    • C
  • Used for the first and last section.

    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.
  • GetSection(Param: number, U: number, V: number, W: number, tabP: NCollection_Array1_gp_Pnt, tabV: NCollection_Array1_gp_Vec): boolean
    Parameters (6)
    • Param
    • U
    • V
    • W
    • tabP
    • tabV
  • 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
  • Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
    Parameters (4)
    • IC2d
    • Tol
    • TolU
    • TolV

BlendFunc_EvolRad

Constructors(1)

Instance methods(36)

  • 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(Choix: number): void
    Parameters (1)
    • Choix
  • Set(TypeSection: BlendFunc_SectionShape): void

    Sets the type of section generation for the approximations.

    Parameters (1)
    • TypeSection
  • 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 surface, at parameter Sol(1),Sol(2) (Sol is the vector used in the call of IsSolution.

  • Returns the point on the second surface, at parameter Sol(3),Sol(4) (Sol is the vector used in the call of IsSolution.

  • IsTangencyPoint(): boolean

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

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

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

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

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

  • Tangent(U1: number, V1: number, U2: number, V2: number, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: 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 (8)
    • U1
    • V1
    • U2
    • V2
    • TgFirst
      Mutated in place; read the updated value from this argument after the call.
    • TgLast
      Mutated in place; read the updated value from this argument after the call.
    • NormFirst
      Mutated in place; read the updated value from this argument after the call.
    • NormLast
      Mutated in place; read the updated value from this argument after the call.
  • TwistOnS1(): boolean
  • TwistOnS2(): boolean
  • Section(Param: number, U1: number, V1: number, U2: number, V2: number, Pdeb: number, Pfin: number, C: gp_Circ): void

    Method for graphic traces.

    Parameters (8)
    • Param
    • U1
    • V1
    • U2
    • V2
    • Pdeb
    • Pfin
    • C
      Mutated in place; read the updated value from this argument after the call.
  • Used for the first and last section.

    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.
  • Used for the first and last section.

    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
  • 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
  • Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
    Parameters (4)
    • IC2d
    • Tol
    • TolU
    • TolV

BlendFunc_EvolRadInv

Constructors(1)

Instance methods(9)

  • 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
  • Set(Choix: number): void
    Parameters (1)
    • Choix
  • 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
  • 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

BlendFunc_GenChamfer

Deferred class for a function used to compute a general chamfer.

Instance methods(21)

  • NbEquations(): number

    returns the number of equations of the function.

  • 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
  • Set(Dist1: number, Dist2: number, Choix: number): void

    Sets the distances and the "quadrant".

    Parameters (3)
    • Dist1
    • Dist2
    • Choix
  • 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
  • Returns the minimal Distance between two extremities of calculated sections.

  • IsRational(): boolean

    Returns False.

  • 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
  • Section(Param: number, U1: number, V1: number, U2: number, V2: number, Pdeb: number, Pfin: number, C: gp_Lin): void

    Obsolete method.

    Parameters (8)
    • Param
    • U1
    • V1
    • U2
    • V2
    • Pdeb
    • Pfin
    • C
      Mutated in place; read the updated value from this argument after the call.
  • Used for the first and last section.

    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.
  • Used for the first and last section.

    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
  • Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
    Parameters (4)
    • IC2d
    • Tol
    • TolU
    • TolV

BlendFunc_GenChamfInv

Deferred class for a function used to compute a general chamfer on a surface's boundary.

Instance methods(6)

  • 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
  • Set(Dist1: number, Dist2: number, Choix: number): void
    Parameters (3)
    • Dist1
    • Dist2
    • Choix
  • 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
  • NbEquations(): number

    returns the number of equations of the function.

  • 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

BlendFunc_Ruled

Constructors(1)

Instance methods(33)

  • 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 surface, at parameter Sol(1),Sol(2) (Sol is the vector used in the call of IsSolution.

  • Returns the point on the second surface, at parameter Sol(3),Sol(4) (Sol is the vector used in the call of IsSolution.

  • IsTangencyPoint(): boolean

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

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

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

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

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

  • Tangent(U1: number, V1: number, U2: number, V2: number, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: 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 (8)
    • U1
    • V1
    • U2
    • V2
    • TgFirst
      Mutated in place; read the updated value from this argument after the call.
    • TgLast
      Mutated in place; read the updated value from this argument after the call.
    • NormFirst
      Mutated in place; read the updated value from this argument after the call.
    • NormLast
      Mutated in place; read the updated value from this argument after the call.
  • GetSection(Param: number, U1: number, V1: number, U2: number, V2: number, tabP: NCollection_Array1_gp_Pnt, tabV: NCollection_Array1_gp_Vec): boolean
    Parameters (7)
    • Param
    • U1
    • V1
    • U2
    • V2
    • tabP
    • tabV
  • IsRational(): boolean

    Returns False.

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

    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.
  • Used for the first and last section.

    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
  • AxeRot(Prm: number): gp_Ax1
    Parameters (1)
    • Prm
  • Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
    Parameters (4)
    • IC2d
    • Tol
    • TolU
    • TolV

BlendFunc_RuledInv

Constructors(1)

Instance methods(8)

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

BlendFunc_Tensor

used to store the "gradient of gradient"

Constructors(1)

Instance methods(4)

  • Init(InitialValue: number): void

    Initialize all the elements of a Tensor to InitialValue.

    Parameters (1)
    • InitialValue
  • Value(Row: number, Col: number, Mat: number): number

    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 (3)
    • Row
    • Col
    • Mat
  • ChangeValue(Row: number, Col: number, Mat: number): number

    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 (3)
    • Row
    • Col
    • Mat
  • Multiply(Right: math_Vector, Product: math_Matrix): void
    Parameters (2)
    • Right
    • Product