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)
- GetMinimalWeights(SectShape: BlendFunc_SectionShape, TConv: Convert_ParameterisationType, AngleMin: number, AngleMax: number, Weigths: NCollection_Array1_double): voidParameters (5)
SectShapeTConvAngleMinAngleMaxWeigths
Used to obtain the next level of continuity.
Parameters (1)S
- ComputeNormal(Surf: Adaptor3d_Surface, p2d: gp_Pnt2d, Normal: gp_Vec): booleanParameters (3)
Surfp2dNormal
- ComputeDNormal(Surf: Adaptor3d_Surface, p2d: gp_Pnt2d, Normal: gp_Vec, DNu: gp_Vec, DNv: gp_Vec): booleanParameters (5)
Surfp2dNormalDNuDNv
BlendFunc_Chamfer
Class for a function used to compute a "ordinary" chamfer: when distances from spine to surfaces are constant.
Constructors(1)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, CG: Adaptor3d_Curve): BlendFunc_ChamferParameters (3)
S1S2CG
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)XF
- 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)XD
- 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)Dist1Dist2Choix
- 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)FirstLast
- 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)SolTol
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)U1V1U2V2TgFirst—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)
- Parameters (3)
S1S2C
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)SolTol
- 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)XF
- 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)XD
- 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)OnFirstCOnSurf
- Set(Dist1: number, Dist2: number, Choix: number): voidParameters (3)
Dist1Dist2Choix
BlendFunc_ChAsym
Constructors(1)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve): BlendFunc_ChAsymParameters (3)
S1S2C
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)FirstLast
- Set(Dist1: number, Angle: number, Choix: number): void
Sets the distances and the angle.
Parameters (3)Dist1AngleChoix
- 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)ToleranceTol
- 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)BoundTolSurfTolAngleTolTol3dTol1D
- 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)InfBoundSupBound
- 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)SolTol
- GetMinimalDistance(): number
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)XDegFDegL
- 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)XF
- 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)XD
- 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)XFD
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)U1V1U2V2TgFirst—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)ParamU1V1U2V2PdebPfinC—Mutated in place; read the updated value from this argument after the call.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, Poles2d: NCollection_Array1_gp_Pnt2d, Weigths: NCollection_Array1_double): voidParameters (4)
PPolesPoles2dWeigths
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (7)PPoles—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (10)PPoles—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.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
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.
- NbIntervals(S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(me) >= .
Parameters (1)S
- Intervals(T: NCollection_Array1_double, S: GeomAbs_Shape): void
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)
NbPolesNbKnotsDegreeNbPoles2d
- Knots(TKnots: NCollection_Array1_double): voidParameters (1)
TKnots
- Mults(TMults: NCollection_Array1_int): voidParameters (1)
TMults
- Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }Parameters (4)
IC2dTolTolUTolV
BlendFunc_ChAsymInv
Constructors(1)
- Parameters (3)
S1S2C
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)OnFirstCOnSurf
- Set(Dist1: number, Angle: number, Choix: number): voidParameters (3)
Dist1AngleChoix
- 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)ToleranceTol
- 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)InfBoundSupBound
- 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)SolTol
- 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)XDegFDegL
- 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)XF
- 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)XD
- 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)XFD
BlendFunc_ConstRad
Constructors(1)
- Parameters (3)
S1S2C
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)XF
- 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)XD
- 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)XFD
- 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)FirstLast
- Set(Radius: number, Choix: number): void
Inits the value of radius, and the "quadrant".
Parameters (2)RadiusChoix
- 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)ToleranceTol
- 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)BoundTolSurfTolAngleTolTol3dTol1D
- 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)InfBoundSupBound
- 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)SolTol
- GetMinimalDistance(): number
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)U1V1U2V2TgFirst—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)ParamU1V1U2V2PdebPfinC—Mutated in place; read the updated value from this argument after the call.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (10)PPoles—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (7)PPoles—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, Poles2d: NCollection_Array1_gp_Pnt2d, Weigths: NCollection_Array1_double): voidParameters (4)
PPolesPoles2dWeigths
- IsRational(): boolean
Returns if the section is rational.
- GetSectionSize(): number
Returns the length of the maximum section.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
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.
- NbIntervals(S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(me) >= .
Parameters (1)S
- Intervals(T: NCollection_Array1_double, S: GeomAbs_Shape): void
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)
NbPolesNbKnotsDegreeNbPoles2d
- Knots(TKnots: NCollection_Array1_double): voidParameters (1)
TKnots
- Mults(TMults: NCollection_Array1_int): voidParameters (1)
TMults
- Parameters (1)
Prm
- Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }Parameters (4)
IC2dTolTolUTolV
BlendFunc_ConstRadInv
Constructors(1)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve): BlendFunc_ConstRadInvParameters (3)
S1S2C
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)OnFirstCOnSurf
- Set(R: number, Choix: number): voidParameters (2)
RChoix
- 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)ToleranceTol
- 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)InfBoundSupBound
- 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)SolTol
- 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)XF
- 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)XD
- 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)XFD
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)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve): BlendFunc_ConstThroatParameters (3)
S1S2C
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)XF
- 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)XD
- 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)aThroatargNo1Choix
- 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)FirstLast
- 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)SolTol
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)U1V1U2V2TgFirst—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)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve): BlendFunc_ConstThroatInvParameters (3)
S1S2C
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)SolTol
- 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)XF
- 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)XD
- 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)OnFirstCOnSurf
- Set(Dist1: number, Dist2: number, Choix: number): voidParameters (3)
Dist1Dist2Choix
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)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve): BlendFunc_ConstThroatWithPenetrationParameters (3)
S1S2C
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)XF
- 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)XD
- 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)SolTol
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)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve): BlendFunc_ConstThroatWithPenetrationInvParameters (3)
S1S2C
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)SolTol
- 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)XF
- 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)XD
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)
- constructor(S: Adaptor3d_Surface, CGuide: Adaptor3d_Curve): BlendFunc_CordeParameters (2)
SCGuide
Instance methods(12)
- SetParam(Param: number): voidParameters (1)
Param
- SetDist(Dist: number): voidParameters (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)XF
- 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)XD
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.
- TangentOnS(): gp_Vec
Returns the tangent vector at PointOnS, in 3d space.
Returns the tangent vector at PointOnS, in the parametric space of the first surface.
Derived of the function compared to the parameter of the guideline.
Parameters (2)SolDerF—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)SolTol
BlendFunc_CSCircular
Constructors(1)
- constructor(S: Adaptor3d_Surface, C: Adaptor3d_Curve, CGuide: Adaptor3d_Curve, L: Law_Function): BlendFunc_CSCircular
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)SCCGuideL
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)XF
- 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)XD
- 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)XFD
- 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)FirstLast
- Set(Radius: number, Choix: number): voidParameters (2)
RadiusChoix
- 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)ToleranceTol
- 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)BoundTolSurfTolAngleTolTol3dTol1D
- 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)InfBoundSupBound
- 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)SolTol
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.
- TangentOnS(): gp_Vec
Returns the tangent vector at PointOnS, in 3d space.
Returns the tangent vector at PointOnS, in the parametric space of the first surface.
- TangentOnC(): gp_Vec
Returns the tangent vector at PointOnC, in 3d space.
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)UVTgS—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, Poles2d: NCollection_Array1_gp_Pnt2d, Weigths: NCollection_Array1_double): voidParameters (4)
PPolesPoles2dWeigths
- Section(Param: number, U: number, V: number, W: number, Pdeb: number, Pfin: number, C: gp_Circ): voidParameters (7)
ParamUVWPdebPfinC
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (7)PPoles—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
Used for the first and last section The method returns true if the derivatives are computed, otherwise it returns false.
Parameters (10)PPoles—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): booleanParameters (6)
ParamUVWtabPtabV
- IsRational(): boolean
Returns if the section is rational.
- GetSectionSize(): number
Returns the length of the maximum section.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
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.
- NbIntervals(S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(me) >= .
Parameters (1)S
- Intervals(T: NCollection_Array1_double, S: GeomAbs_Shape): void
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 fromStandardParameters (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)
NbPolesNbKnotsDegreeNbPoles2d
- Knots(TKnots: NCollection_Array1_double): voidParameters (1)
TKnots
- Mults(TMults: NCollection_Array1_int): voidParameters (1)
TMults
- Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }Parameters (4)
IC2dTolTolUTolV
BlendFunc_CSConstRad
Constructors(1)
- constructor(S: Adaptor3d_Surface, C: Adaptor3d_Curve, CGuide: Adaptor3d_Curve): BlendFunc_CSConstRadParameters (3)
SCCGuide
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)XF
- 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)XD
- 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)XFD
- 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)FirstLast
- Set(Radius: number, Choix: number): voidParameters (2)
RadiusChoix
- 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)ToleranceTol
- 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)BoundTolSurfTolAngleTolTol3dTol1D
- 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)InfBoundSupBound
- 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)SolTol
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.
- TangentOnS(): gp_Vec
Returns the tangent vector at PointOnS, in 3d space.
Returns the tangent vector at PointOnS, in the parametric space of the first surface.
- TangentOnC(): gp_Vec
Returns the tangent vector at PointOnC, in 3d space.
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)UVTgS—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, Poles2d: NCollection_Array1_gp_Pnt2d, Weigths: NCollection_Array1_double): voidParameters (4)
PPolesPoles2dWeigths
- Section(Param: number, U: number, V: number, W: number, Pdeb: number, Pfin: number, C: gp_Circ): voidParameters (7)
ParamUVWPdebPfinC
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (7)PPoles—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
Used for the first and last section The method returns true if the derivatives are computed, otherwise it returns false.
Parameters (10)PPoles—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): booleanParameters (6)
ParamUVWtabPtabV
- IsRational(): boolean
Returns if the section is rational.
- GetSectionSize(): number
Returns the length of the maximum section.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
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.
- NbIntervals(S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(me) >= .
Parameters (1)S
- Intervals(T: NCollection_Array1_double, S: GeomAbs_Shape): void
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 fromStandard.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)
NbPolesNbKnotsDegreeNbPoles2d
- Knots(TKnots: NCollection_Array1_double): voidParameters (1)
TKnots
- Mults(TMults: NCollection_Array1_int): voidParameters (1)
TMults
- Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }Parameters (4)
IC2dTolTolUTolV
BlendFunc_EvolRad
Constructors(1)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve, Law: Law_Function): BlendFunc_EvolRadParameters (4)
S1S2CLaw
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)XF
- 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)XD
- 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)XFD
- 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): voidParameters (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)FirstLast
- 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)ToleranceTol
- 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)BoundTolSurfTolAngleTolTol3dTol1D
- 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)InfBoundSupBound
- 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)SolTol
- GetMinimalDistance(): number
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)U1V1U2V2TgFirst—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)ParamU1V1U2V2PdebPfinC—Mutated in place; read the updated value from this argument after the call.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (10)PPoles—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (7)PPoles—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, Poles2d: NCollection_Array1_gp_Pnt2d, Weigths: NCollection_Array1_double): voidParameters (4)
PPolesPoles2dWeigths
- IsRational(): boolean
Returns if the section is rational.
- GetSectionSize(): number
Returns the length of the maximum section.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
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.
- NbIntervals(S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(me) >= .
Parameters (1)S
- Intervals(T: NCollection_Array1_double, S: GeomAbs_Shape): void
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)
NbPolesNbKnotsDegreeNbPoles2d
- Knots(TKnots: NCollection_Array1_double): voidParameters (1)
TKnots
- Mults(TMults: NCollection_Array1_int): voidParameters (1)
TMults
- Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }Parameters (4)
IC2dTolTolUTolV
BlendFunc_EvolRadInv
Constructors(1)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve, Law: Law_Function): BlendFunc_EvolRadInvParameters (4)
S1S2CLaw
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)OnFirstCOnSurf
- Set(Choix: number): voidParameters (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)ToleranceTol
- 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)InfBoundSupBound
- 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)SolTol
- 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)XF
- 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)XD
- 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)XFD
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)XFD
- 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)FirstLast
- Set(Dist1: number, Dist2: number, Choix: number): void
Sets the distances and the "quadrant".
Parameters (3)Dist1Dist2Choix
- 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)ToleranceTol
- 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)BoundTolSurfTolAngleTolTol3dTol1D
- 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)InfBoundSupBound
- GetMinimalDistance(): number
Returns the minimal Distance between two extremities of calculated sections.
- IsRational(): boolean
Returns False.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
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.
- NbIntervals(S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(me) >= .
Parameters (1)S
- Intervals(T: NCollection_Array1_double, S: GeomAbs_Shape): void
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 fromStandardParameters (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)
NbPolesNbKnotsDegreeNbPoles2d
- Knots(TKnots: NCollection_Array1_double): voidParameters (1)
TKnots
- Mults(TMults: NCollection_Array1_int): voidParameters (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)ParamU1V1U2V2PdebPfinC—Mutated in place; read the updated value from this argument after the call.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (10)PPoles—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (7)PPoles—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, Poles2d: NCollection_Array1_gp_Pnt2d, Weigths: NCollection_Array1_double): voidParameters (4)
PPolesPoles2dWeigths
- Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }Parameters (4)
IC2dTolTolUTolV
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)OnFirstCOnSurf
- Set(Dist1: number, Dist2: number, Choix: number): voidParameters (3)
Dist1Dist2Choix
- 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)ToleranceTol
- 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)InfBoundSupBound
- 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)XFD
BlendFunc_Ruled
Constructors(1)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve): BlendFunc_RuledParameters (3)
S1S2C
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)XF
- 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)XD
- 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)XFD
- 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)FirstLast
- 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)ToleranceTol
- 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)BoundTolSurfTolAngleTolTol3dTol1D
- 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)InfBoundSupBound
- 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)SolTol
- GetMinimalDistance(): number
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)U1V1U2V2TgFirst—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): booleanParameters (7)
ParamU1V1U2V2tabPtabV
- IsRational(): boolean
Returns False.
- GetSectionSize(): number
Returns the length of the maximum section.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
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.
- NbIntervals(S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(me) >= .
Parameters (1)S
- Intervals(T: NCollection_Array1_double, S: GeomAbs_Shape): void
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 fromStandardParameters (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)
NbPolesNbKnotsDegreeNbPoles2d
- Knots(TKnots: NCollection_Array1_double): voidParameters (1)
TKnots
- Mults(TMults: NCollection_Array1_int): voidParameters (1)
TMults
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (10)PPoles—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
Used for the first and last section.
Parameters (7)PPoles—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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, Poles2d: NCollection_Array1_gp_Pnt2d, Weigths: NCollection_Array1_double): voidParameters (4)
PPolesPoles2dWeigths
- Parameters (1)
Prm
- Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }Parameters (4)
IC2dTolTolUTolV
BlendFunc_RuledInv
Constructors(1)
- Parameters (3)
S1S2C
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)OnFirstCOnSurf
- 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)ToleranceTol
- 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)InfBoundSupBound
- 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)SolTol
- 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)XF
- 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)XD
- 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)XFD
BlendFunc_SectionShape
Properties(4)
BlendFunc_Tensor
used to store the "gradient of gradient"
Constructors(1)
- constructor(NbRow: number, NbCol: number, NbMat: number): BlendFunc_TensorParameters (3)
NbRowNbColNbMat
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)RowColMat
- 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)RowColMat
- Multiply(Right: math_Vector, Product: math_Matrix): voidParameters (2)
RightProduct