Geom2dGcc
OCCT package Geom2dGcc: Geom2dGcc, Geom2dGcc_CurveTool, Geom2dGcc_FunctionTanCirCu, Geom2dGcc_FunctionTanCuCu, and 9 more bound classes.
Geom2dGcc
The Geom2dGcc package describes qualified 2D curves used in the construction of constrained geometric objects by an algorithm provided by the Geom2dGcc package. A qualified 2D curve is a curve with a qualifier which specifies whether the solution of a construction algorithm using the qualified curve (as an argument):
- encloses the curve, or
- is enclosed by the curve, or
- is built so that both the curve and this solution are external to one another, or
- is undefined (all solutions apply). These package methods provide simpler functions to construct a qualified curve. Note: the interior of a curve is defined as the left-hand side of the curve in relation to its orientation.
Constructors(1)
Static methods(4)
Constructs such a qualified curve that the relative position of the solution computed by a construction algorithm using the qualified curve to the circle or line is not qualified, i.e. all solutions apply. Warning Obj is an adapted curve, i.e. an object which is an interface between:
- the services provided by a 2D curve from the package Geom2d,
- and those required on the curve by a computation algorithm. The adapted curve is created in the following way:
occ::handle<Geom2d_Curve>mycurve = ... ;Geom2dAdaptor_CurveObj ( mycurve ) ; The qualified curve is then constructed with this object:Geom2dGcc_QualifiedCurvemyQCurve = Geom2dGcc::Unqualified(Obj);
Parameters (1)Obj
Constructs such a qualified curve that the solution computed by a construction algorithm using the qualified curve encloses the curve. Warning Obj is an adapted curve, i.e. an object which is an interface between:
- the services provided by a 2D curve from the package Geom2d,
- and those required on the curve by a computation algorithm. The adapted curve is created in the following way:
occ::handle<Geom2d_Curve>mycurve = ... ;Geom2dAdaptor_CurveObj ( mycurve ) ; The qualified curve is then constructed with this object:Geom2dGcc_QualifiedCurvemyQCurve = Geom2dGcc::Enclosing(Obj);
Parameters (1)Obj
Constructs such a qualified curve that the solution computed by a construction algorithm using the qualified curve is enclosed by the curve. Warning Obj is an adapted curve, i.e. an object which is an interface between:
- the services provided by a 2D curve from the package Geom2d,
- and those required on the curve by a computation algorithm. The adapted curve is created in the following way:
occ::handle<Geom2d_Curve>mycurve = ... ;Geom2dAdaptor_CurveObj ( mycurve ) ; The qualified curve is then constructed with this object:Geom2dGcc_QualifiedCurvemyQCurve = Geom2dGcc::Enclosed(Obj);
Parameters (1)Obj
Constructs such a qualified curve that the solution computed by a construction algorithm using the qualified curve and the curve are external to one another. Warning Obj is an adapted curve, i.e. an object which is an interface between:
- the services provided by a 2D curve from the package Geom2d,
- and those required on the curve by a computation algorithm. The adapted curve is created in the following way:
occ::handle<Geom2d_Curve>mycurve = ... ;Geom2dAdaptor_CurveObj ( mycurve ) ; The qualified curve is then constructed with this object:Geom2dGcc_QualifiedCurvemyQCurve = Geom2dGcc::Outside(Obj);
Parameters (1)Obj
Geom2dGcc_CurveTool
Constructors(1)
Static methods(8)
- FirstParameter(C: Geom2dAdaptor_Curve): numberParameters (1)
C
- LastParameter(C: Geom2dAdaptor_Curve): numberParameters (1)
C
- EpsX(C: Geom2dAdaptor_Curve, Tol: number): numberParameters (2)
CTol
- NbSamples(C: Geom2dAdaptor_Curve): numberParameters (1)
C
- Value(C: Geom2dAdaptor_Curve, X: number): gp_Pnt2dParameters (2)
CX
- D1(C: Geom2dAdaptor_Curve, U: number, P: gp_Pnt2d, T: gp_Vec2d): voidParameters (4)
CUPT
- D2(C: Geom2dAdaptor_Curve, U: number, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d): voidParameters (5)
CUPTN
- Parameters (6)
CUPTNdN
Geom2dGcc_FunctionTanCirCu
This abstract class describes a Function of 1 Variable used to find a line tangent to a curve and a circle.
Constructors(1)
- constructor(Circ: gp_Circ2d, Curv: Geom2dAdaptor_Curve): Geom2dGcc_FunctionTanCirCuParameters (2)
CircCurv
Instance methods(3)
- Value(X: number, F: number): { returnValue: boolean; F: number }
Computes the value of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (2)XF
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- Derivative(X: number, D: number): { returnValue: boolean; D: number }
Computes the derivative of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (2)XD
ReturnsA result object with fields:
returnValue: the C++ return valueD: updated value from the call.
- Values(X: number, F: number, D: number): { returnValue: boolean; F: number; D: number }
Computes the value and the derivative of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (3)XFD
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.D: updated value from the call.
Geom2dGcc_FunctionTanCuCu
This abstract class describes a Function of 1 Variable used to find a line tangent to two curves.
Constructors(2)
- constructor(Curv1: Geom2dAdaptor_Curve, Curv2: Geom2dAdaptor_Curve): Geom2dGcc_FunctionTanCuCuParameters (2)
Curv1Curv2
- constructor(Circ1: gp_Circ2d, Curv2: Geom2dAdaptor_Curve): Geom2dGcc_FunctionTanCuCuParameters (2)
Circ1Curv2
Instance methods(6)
- InitDerivative(X: math_Vector, Point1: gp_Pnt2d, Point2: gp_Pnt2d, Tan1: gp_Vec2d, Tan2: gp_Vec2d, D21: gp_Vec2d, D22: gp_Vec2d): voidParameters (7)
XPoint1Point2Tan1Tan2D21D22
- 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 value of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (2)XF
- Derivatives(X: math_Vector, D: math_Matrix): boolean
Computes the derivative of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (2)XD
- Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean
Computes the value and the derivative of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (3)XFD
Geom2dGcc_FunctionTanCuCuOnCu
This abstract class describes a set on N Functions of M independent variables.
Constructors(12)
- constructor(C1: Geom2dAdaptor_Curve, C2: Geom2dAdaptor_Curve, OnCi: gp_Circ2d, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
C1C2OnCiRad
- constructor(C1: gp_Circ2d, C2: Geom2dAdaptor_Curve, OnCi: gp_Circ2d, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
C1C2OnCiRad
- constructor(L1: gp_Lin2d, C2: Geom2dAdaptor_Curve, OnCi: gp_Circ2d, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
L1C2OnCiRad
- constructor(C1: Geom2dAdaptor_Curve, P2: gp_Pnt2d, OnCi: gp_Circ2d, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
C1P2OnCiRad
- constructor(C1: Geom2dAdaptor_Curve, C2: Geom2dAdaptor_Curve, OnLi: gp_Lin2d, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
C1C2OnLiRad
- constructor(C1: gp_Circ2d, C2: Geom2dAdaptor_Curve, OnLi: gp_Lin2d, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
C1C2OnLiRad
- constructor(L1: gp_Lin2d, C2: Geom2dAdaptor_Curve, OnLi: gp_Lin2d, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
L1C2OnLiRad
- constructor(C1: Geom2dAdaptor_Curve, P2: gp_Pnt2d, OnLi: gp_Lin2d, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
C1P2OnLiRad
- constructor(C1: Geom2dAdaptor_Curve, C2: Geom2dAdaptor_Curve, OnCu: Geom2dAdaptor_Curve, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
C1C2OnCuRad
- constructor(C1: gp_Circ2d, C2: Geom2dAdaptor_Curve, OnCu: Geom2dAdaptor_Curve, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
C1C2OnCuRad
- constructor(L1: gp_Lin2d, C2: Geom2dAdaptor_Curve, OnCu: Geom2dAdaptor_Curve, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
L1C2OnCuRad
- constructor(C1: Geom2dAdaptor_Curve, P1: gp_Pnt2d, OnCu: Geom2dAdaptor_Curve, Rad: number): Geom2dGcc_FunctionTanCuCuOnCuParameters (4)
C1P1OnCuRad
Instance methods(6)
- InitDerivative(X: math_Vector, Point1: gp_Pnt2d, Point2: gp_Pnt2d, Point3: gp_Pnt2d, Tan1: gp_Vec2d, Tan2: gp_Vec2d, Tan3: gp_Vec2d, D21: gp_Vec2d, D22: gp_Vec2d, D23: gp_Vec2d): voidParameters (10)
XPoint1Point2Point3Tan1Tan2Tan3D21D22D23
- 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 of the Functions for the variable <X>.
Parameters (2)XF
- Derivatives(X: math_Vector, D: math_Matrix): boolean
Returns the values of the derivatives for the variable <X>.
Parameters (2)XD
- Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean
Returns the values of the functions and the derivatives for the variable <X>.
Parameters (3)XFD
Geom2dGcc_FunctionTanCuPnt
This abstract class describes a Function of 1 Variable used to find a line tangent to a curve and passing through a point.
Constructors(1)
- constructor(C: Geom2dAdaptor_Curve, Point: gp_Pnt2d): Geom2dGcc_FunctionTanCuPntParameters (2)
CPoint
Instance methods(3)
- Value(X: number, F: number): { returnValue: boolean; F: number }
Computes the value of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (2)XF
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- Derivative(X: number, D: number): { returnValue: boolean; D: number }
Computes the derivative of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (2)XD
ReturnsA result object with fields:
returnValue: the C++ return valueD: updated value from the call.
- Values(X: number, F: number, D: number): { returnValue: boolean; F: number; D: number }
Computes the value and the derivative of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (3)XFD
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.D: updated value from the call.
Geom2dGcc_FunctionTanObl
This class describe a function of a single variable.
Constructors(1)
- constructor(Curve: Geom2dAdaptor_Curve, Dir: gp_Dir2d): Geom2dGcc_FunctionTanOblParameters (2)
CurveDir
Instance methods(3)
- Value(X: number, F: number): { returnValue: boolean; F: number }
Computes the value of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (2)XF
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- Derivative(X: number, D: number): { returnValue: boolean; D: number }
Computes the derivative of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (2)XD
ReturnsA result object with fields:
returnValue: the C++ return valueD: updated value from the call.
- Values(X: number, F: number, D: number): { returnValue: boolean; F: number; D: number }
Computes the value and the derivative of the function F for the variable X. It returns True if the computation is successfully done, False otherwise.
Parameters (3)XFD
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.D: updated value from the call.
Geom2dGcc_IsParallel
Constructors(2)
- constructor(theMessage: string): Geom2dGcc_IsParallelParameters (1)
theMessage
- constructor(theMessage: string, theStackTrace: string): Geom2dGcc_IsParallelParameters (2)
theMessagetheStackTrace
Instance methods(1)
- ExceptionType(): string
Geom2dGcc_QCurve
Creates a qualified 2d line.
Constructors(1)
- constructor(Curve: Geom2dAdaptor_Curve, Qualifier: GccEnt_Position): Geom2dGcc_QCurveParameters (2)
CurveQualifier
Instance methods(6)
- IsUnqualified(): boolean
Returns true if the solution is unqualified and false in the other cases.
- IsEnclosing(): boolean
Returns true if the solution is Enclosing the Curv and false in the other cases.
- IsEnclosed(): boolean
Returns true if the solution is Enclosed in the Curv and false in the other cases.
- IsOutside(): boolean
Returns true if the solution is Outside the Curv and false in the other cases.
Geom2dGcc_QualifiedCurve
Describes functions for building a qualified 2D curve. A qualified 2D curve is a curve with a qualifier which specifies whether the solution of a construction algorithm using the qualified curve (as an argument):
- encloses the curve, or
- is enclosed by the curve, or
- is built so that both the curve and it are external to one another, or
- is undefined (all solutions apply).
Constructors(1)
- constructor(Curve: Geom2dAdaptor_Curve, Qualifier: GccEnt_Position): Geom2dGcc_QualifiedCurve
Constructs a qualified curve by assigning the qualifier Qualifier to the curve Curve. Qualifier may be:
- GccEnt_enclosing if the solution of a construction algorithm using the qualified curve encloses the curve, or
- GccEnt_enclosed if the solution is enclosed by the curve, or
- GccEnt_outside if both the solution and the curve are external to one another, or
- GccEnt_unqualified if all solutions apply. Note: The interior of a curve is defined as the left-hand side of the curve in relation to its orientation. Warning Curve is an adapted curve, i.e. an object which is an interface between:
- the services provided by a 2D curve from the package Geom2d,
- and those required on the curve by a computation algorithm. The adapted curve is created in the following way:
occ::handle<Geom2d_Curve>mycurve = ... ;Geom2dAdaptor_CurveCurve ( mycurve ) ; The qualified curve is then constructed with this object:GccEnt_PositionmyQualif = GccEnt_outside ;Geom2dGcc_QualifiedCurvemyQCurve ( Curve, myQualif ); is private;
Parameters (2)CurveQualifier
Instance methods(6)
Returns a 2D curve to which the qualifier is assigned. Warning The returned curve is an adapted curve, i.e. an object which is an interface between:
- the services provided by a 2D curve from the package Geom2d,
- and those required on the curve by a computation algorithm. The Geom2d curve on which the adapted curve is based can be obtained in the following way: myQualifiedCurve = ... ;
Geom2dAdaptor_CurvemyAdaptedCurve = myQualifiedCurve.Qualified();occ::handle<Geom2d_Curve>= myAdaptedCurve.Curve();
Returns.
- the qualifier of this qualified curve if it is enclosing, enclosed or outside, or
- GccEnt_noqualifier if it is unqualified.
- IsUnqualified(): boolean
Returns true if the solution is unqualified and false in the other cases.
- IsEnclosing(): boolean
It returns true if the solution is Enclosing the Curv and false in the other cases.
- IsEnclosed(): boolean
It returns true if the solution is Enclosed in the Curv and false in the other cases.
- IsOutside(): boolean
It returns true if the solution is Outside the Curv and false in the other cases.
Geom2dGcc_Type1
Properties(6)
Geom2dGcc_Type2
Properties(12)
Geom2dGcc_Type3
Properties(2)
Geom2dAPI
OCCT package Geom2dAPI: Geom2dAPI_ExtremaCurveCurve, Geom2dAPI_InterCurveCurve, Geom2dAPI_Interpolate, Geom2dAPI_PointsToBSpline, and 1 more bound classes.
Geom2dHatch
OCCT package Geom2dHatch: Geom2dHatch_Classifier, Geom2dHatch_Element, Geom2dHatch_FClass2dOfClassifier, Geom2dHatch_Hatcher, and 2 more bound classes.