Blend
OCCT package Blend: Blend_AppFunction, Blend_CSFunction, Blend_CurvPointFuncInv, Blend_DecrochStatus, and 8 more bound classes.
Blend_AppFunction
Deferred class for a function used to compute a blending surface between two surfaces, using a guide line. The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates U1,V1, U2,V2, of the extremities of a section on the first and second surface.
Instance methods(27)
- NbVariables(): number
returns the number of variables of the function.
- NbEquations(): number
returns the number of equations of the function.
- Value(X: math_Vector, F: math_Vector): boolean
computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters (2)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 support.
Returns the point on the first support.
- IsRational(): boolean
Returns if the section is rational.
- GetSectionSize(): number
Returns the length of the maximum section.
- 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, 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 The method returns true if the derivatives are computed, otherwise it returns false.
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
- 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.
- Resolution(IC2d: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }Parameters (4)
IC2dTolTolUTolV
- Parameter(P: Blend_Point): number
Returns the parameter of the point P. Used to impose the parameters in the approximation.
Parameters (1)P
Blend_CSFunction
Deferred class for a function used to compute a blending surface between a surface and a curve, using a guide line. The vector <X> used in Value, Values and Derivatives methods may be the vector of the parametric coordinates U,V, W of the extremities of a section on the surface and the curve.
Instance methods(29)
- NbVariables(): number
Returns 3 (default value). Can be redefined.
- NbEquations(): number
returns the number of equations of the function.
- Value(X: math_Vector, F: math_Vector): boolean
computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters (2)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 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
- GetMinimalDistance(): number
Returns the minimal Distance between two extremities of calculated sections.
Returns the point on the first support.
Returns the point on the second support.
Returns the point on the surface.
Returns the point on the curve.
Returns U,V coordinates of the point on the surface.
- ParameterOnC(): number
Returns parameter of the point on the curve.
- IsTangencyPoint(): boolean
Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnC.
- 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 surfaces) 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.
- 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, 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 The method returns true if the derivatives are computed, otherwise it returns false.
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
- 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.
Blend_CurvPointFuncInv
Deferred class for a function used to compute a blending surface between a surface and a curve, using a guide line. This function is used to find a solution on a done point of the curve. The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates w, U, V where w is the parameter on the guide line, U,V are the parametric coordinates of a point on the partner surface.
Instance methods(9)
- NbVariables(): number
Returns 3.
- NbEquations(): number
returns the number of equations of the function.
- Value(X: math_Vector, F: math_Vector): boolean
computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters (2)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 the Point on which a solution has to be found.
Parameters (1)P
- GetTolerance(Tolerance: math_Vector, Tol: number): void
Returns in the vector Tolerance the parametric tolerance for each of the 3 variables; Tol is the tolerance used in 3d space.
Parameters (2)ToleranceTol
- 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.
Parameters (2)SolTol
Blend_DecrochStatus
Properties(4)
Blend_FuncInv
Deferred class for a function used to compute a blending surface between two surfaces, using a guide line. This function is used to find a solution on a restriction of one of the surface. The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates t,w,U,V where t is the parameter on the curve on surface, w is the parameter on the guide line, U,V are the parametric coordinates of a point on the partner surface.
Instance methods(9)
- NbVariables(): number
Returns 4.
- NbEquations(): number
returns the number of equations of the function.
- Value(X: math_Vector, F: math_Vector): boolean
computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters (2)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(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
Blend_Function
Deferred class for a function used to compute a blending surface between two surfaces, using a guide line. The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates U1,V1, U2,V2, of the extremities of a section on the first and second surface.
Instance methods(16)
- NbVariables(): number
Returns 4.
Returns the point on the first support.
Returns the point on the second support.
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(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, 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.
- 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): booleanParameters (7)
PPolesDPolesPoles2dDPoles2dWeigthsDWeigths
Blend_Point
Constructors(9)
- constructor(Pts: gp_Pnt, Ptc: gp_Pnt, Param: number, U: number, V: number, W: number): Blend_Point
Creates a point on a surface and a curve, without tangents.
Parameters (6)PtsPtcParamUVW
- constructor(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number): Blend_Point
Creates a point on 2 surfaces, without tangents.
Parameters (7)Pt1Pt2ParamU1V1U2V2
- constructor(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number, PC: number): Blend_Point
Creates a point on a surface and a curve on surface, without tangents.
Parameters (8)Pt1Pt2ParamU1V1U2V2PC
- constructor(Pts: gp_Pnt, Ptc: gp_Pnt, Param: number, U: number, V: number, W: number, Tgs: gp_Vec, Tgc: gp_Vec, Tg2d: gp_Vec2d): Blend_Point
Creates a point on a surface and a curve, with tangents.
Parameters (9)PtsPtcParamUVWTgsTgcTg2d
- constructor(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number, PC1: number, PC2: number): Blend_Point
Creates a point on two curves on surfaces, with tangents.
Parameters (9)Pt1Pt2ParamU1V1U2V2PC1PC2
- constructor(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d): Blend_Point
Creates a point on 2 surfaces, with tangents.
Parameters (11)Pt1Pt2ParamU1V1U2V2Tg1Tg2Tg12dTg22d
- constructor(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number, PC: number, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d): Blend_Point
Creates a point on a surface and a curve on surface, with tangents.
Parameters (12)Pt1Pt2ParamU1V1U2V2PCTg1Tg2Tg12dTg22d
- constructor(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number, PC1: number, PC2: number, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d): Blend_Point
Creates a point on two curves on surfaces, with tangents.
Parameters (13)Pt1Pt2ParamU1V1U2V2PC1PC2Tg1Tg2Tg12dTg22d
Instance methods(33)
Creates a point on two curves.
Parameters (5)Pt1Pt2ParamPC1PC2
Set the values for a point on a surface and a curve, without tangents.
Parameters (6)PtsPtcParamUVW
- SetValue(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number): void
Set the values for a point on 2 surfaces, without tangents.
Parameters (7)Pt1Pt2ParamU1V1U2V2
- SetValue(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number, PC: number): void
Creates a point on a surface and a curve on surface, without tangents.
Parameters (8)Pt1Pt2ParamU1V1U2V2PC
- SetValue(Pts: gp_Pnt, Ptc: gp_Pnt, Param: number, U: number, V: number, W: number, Tgs: gp_Vec, Tgc: gp_Vec, Tg2d: gp_Vec2d): void
Set the values for a point on a surface and a curve, with tangents.
Parameters (9)PtsPtcParamUVWTgsTgcTg2d
- SetValue(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number, PC1: number, PC2: number): void
Creates a point on two curves on surfaces, without tangents.
Parameters (9)Pt1Pt2ParamU1V1U2V2PC1PC2
- SetValue(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d): void
Set the values for a point on 2 surfaces, with tangents.
Parameters (11)Pt1Pt2ParamU1V1U2V2Tg1Tg2Tg12dTg22d
- SetValue(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number, PC: number, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d): void
Creates a point on a surface and a curve on surface, with tangents.
Parameters (12)Pt1Pt2ParamU1V1U2V2PCTg1Tg2Tg12dTg22d
- SetValue(Pt1: gp_Pnt, Pt2: gp_Pnt, Param: number, U1: number, V1: number, U2: number, V2: number, PC1: number, PC2: number, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d): void
Creates a point on two curves on surfaces, with tangents.
Parameters (13)Pt1Pt2ParamU1V1U2V2PC1PC2Tg1Tg2Tg12dTg22d
- SetParameter(Param: number): void
Changes parameter on existing point.
Parameters (1)Param
- Parameter(): number
- IsTangencyPoint(): boolean
Returns true if it was not possible to compute the tangent vectors at PointOnS1 and/or PointOnS2.
- ParametersOnS1(U: number, V: number): { U: number; V: number }Parameters (2)
UV
- ParametersOnS2(U: number, V: number): { U: number; V: number }Parameters (2)
UV
- ParametersOnS(U: number, V: number): { U: number; V: number }Parameters (2)
UV
- ParameterOnC(): number
- TangentOnS(): gp_Vec
- TangentOnC(): gp_Vec
- ParameterOnC1(): number
- ParameterOnC2(): number
Blend_RstRstFunction
Deferred class for a function used to compute a blending surface between a surface and a pcurve on an other Surface, using a guide line. The vector <X> used in Value, Values and Derivatives methods may be the vector of the parametric coordinates U,V, W of the extremities of a section on the surface and the curve.
Instance methods(37)
- NbVariables(): number
Returns 2 (default value). Can be redefined.
- NbEquations(): number
returns the number of equations of the function.
- Value(X: math_Vector, F: math_Vector): boolean
computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters (2)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 variable; 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 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
- GetMinimalDistance(): number
Returns the minimal Distance between two extremities of calculated sections.
Returns the point on the first support.
Returns the point on the second support.
Returns the point on the surface.
Returns the point on the curve.
Returns U,V coordinates of the point on the surface.
Returns U,V coordinates of the point on the curve on surface.
- ParameterOnRst1(): number
Returns parameter of the point on the curve.
- ParameterOnRst2(): number
Returns parameter of the point on the curve.
- IsTangencyPoint(): boolean
Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnRst.
Returns the tangent vector at PointOnS, in 3d space.
Returns the tangent vector at PointOnS, in the parametric space of the first surface.
Returns the tangent vector at PointOnC, in 3d space.
Returns the tangent vector at PointOnRst, in the parametric space of the second surface.
- Decroch(Sol: math_Vector, NRst1: gp_Vec, TgRst1: gp_Vec, NRst2: gp_Vec, TgRst2: gp_Vec): Blend_DecrochStatus
Enables to implement a criterion of decrochage specific to the function. Warning: Can be called without previous call of IsSolution but the values calculated can be senseless.
Parameters (5)SolNRst1—Mutated in place; read the updated value from this argument after the call.TgRst1—Mutated in place; read the updated value from this argument after the call.NRst2—Mutated in place; read the updated value from this argument after the call.TgRst2—Mutated in place; read the updated value from this argument after the call.
- IsRational(): boolean
Returns if the section is rational.
- GetSectionSize(): number
Returns the length of the maximum section.
- 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
- 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 The method returns true if the derivatives are computed, otherwise it returns false.
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.
Blend_Status
Properties(8)
Blend_SurfCurvFuncInv
Deferred class for a function used to compute a blending surface between a surface and a curve, using a guide line. This function is used to find a solution on a done restriction of the surface.
The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates wguide, wcurv, wrst where wguide is the parameter on the guide line, wcurv is the parameter on the curve, wrst is the parameter on the restriction on the surface.
Instance methods(9)
- NbVariables(): number
Returns 3.
- NbEquations(): number
returns the number of equations of the function.
- Value(X: math_Vector, F: math_Vector): boolean
computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters (2)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(Rst: Adaptor2d_Curve2d): void
Set the Point on which a solution has to be found.
Parameters (1)Rst
- GetTolerance(Tolerance: math_Vector, Tol: number): void
Returns in the vector Tolerance the parametric tolerance for each of the 3 variables; Tol is the tolerance used in 3d space.
Parameters (2)ToleranceTol
- 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.
Parameters (2)SolTol
Blend_SurfPointFuncInv
Deferred class for a function used to compute a blending surface between a surface and a curve, using a guide line. This function is used to find a solution on a done point of the curve.
The vector <X> used in Value, Values and Derivatives methods has to be the vector of the parametric coordinates w, U, V where w is the parameter on the guide line, U,V are the parametric coordinates of a point on the partner surface.
Instance methods(9)
- NbVariables(): number
Returns 3.
- NbEquations(): number
returns the number of equations of the function.
- Value(X: math_Vector, F: math_Vector): boolean
computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters (2)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 the Point on which a solution has to be found.
Parameters (1)P
- GetTolerance(Tolerance: math_Vector, Tol: number): void
Returns in the vector Tolerance the parametric tolerance for each of the 3 variables; Tol is the tolerance used in 3d space.
Parameters (2)ToleranceTol
- 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.
Parameters (2)SolTol
Blend_SurfRstFunction
Deferred class for a function used to compute a blending surface between a surface and a pcurve on an other Surface, using a guide line. The vector <X> used in Value, Values and Derivatives methods may be the vector of the parametric coordinates U,V, W of the extremities of a section on the surface and the curve.
Instance methods(36)
- NbVariables(): number
Returns 3 (default value). Can be redefined.
- NbEquations(): number
returns the number of equations of the function.
- Value(X: math_Vector, F: math_Vector): boolean
computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters (2)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 variable. 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 variable. 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
- GetMinimalDistance(): number
Returns the minimal Distance between two extremities of calculated sections.
Returns the point on the first support.
Returns the point on the second support.
Returns the point on the surface.
- PointOnRst(): gp_Pnt
Returns the point on the curve.
Returns U,V coordinates of the point on the surface.
Returns U,V coordinates of the point on the curve on surface.
- ParameterOnRst(): number
Returns parameter of the point on the curve.
- IsTangencyPoint(): boolean
Returns True when it is not possible to compute the tangent vectors at PointOnS and/or PointOnRst.
- 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.
Returns the tangent vector at PointOnC, in 3d space.
Returns the tangent vector at PointOnRst, in the parametric space of the second surface.
Enables implementation of a criterion of decrochage specific to the function.
Parameters (3)SolNS—Mutated in place; read the updated value from this argument after the call.TgS—Mutated in place; read the updated value from this argument after the call.
- IsRational(): boolean
Returns if the section is rational.
- GetSectionSize(): number
Returns the length of the maximum section.
- 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
- 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 The method returns true if the derivatives are computed, otherwise it returns false.
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.
- Section(P: Blend_Point, Poles: NCollection_Array1_gp_Pnt, Poles2d: NCollection_Array1_gp_Pnt2d, Weigths: NCollection_Array1_double): voidParameters (4)
PPolesPoles2dWeigths