IntCurve
OCCT package IntCurve: IntCurve_IConicTool, IntCurve_IntConicConic, IntCurve_IntImpConicParConic, IntCurve_MyImpParToolOfIntImpConicParConic, and 5 more…
IntCurve_IConicTool
Implementation of the ImpTool from IntImpParGen for conics of gp.
Constructors(7)
- Parameters (1)
IT
- Parameters (1)
E
- Parameters (1)
L
- Parameters (1)
C
- Parameters (1)
P
- Parameters (1)
H
Instance methods(6)
- Parameters (1)
X
- Parameters (3)
UPT
- Parameters (4)
UPTN
Computes the value of the signed distance between the point P and the implicit curve.
Parameters (1)P
- GradDistance(P: gp_Pnt2d): gp_Vec2d
Computes the Gradient of the Signed Distance between a point and the implicit curve, at the point P.
Parameters (1)P
- FindParameter(P: gp_Pnt2d): number
Returns the parameter U of the point on the implicit curve corresponding to the point P. The correspondence between P and the point P(U) on the implicit curve must be coherent with the way of determination of the signed distance.
Parameters (1)P
IntCurve_IntConicConic
Provides methods to intersect two conics. The exception ConstructionError is raised in constructors or in Perform methods when a domain (Domain from IntRes2d) is not correct, i-e when a Circle (Circ2d from gp) or an Ellipse (i-e Elips2d from gp) do not have a closed domain (use the SetEquivalentParameters method for a domain on a circle or an ellipse).
Constructors(16)
Empty Constructor.
- constructor(L1: gp_Lin2d, D1: IntRes2d_Domain, L2: gp_Lin2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between 2 lines from gp.
Parameters (6)L1D1L2D2TolConfTol
- constructor(L: gp_Lin2d, DL: IntRes2d_Domain, C: gp_Circ2d, DC: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between a line and a circle. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
Parameters (6)LDLCDCTolConfTol
- constructor(L: gp_Lin2d, DL: IntRes2d_Domain, E: gp_Elips2d, DE: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between a line and an ellipse. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
Parameters (6)LDLEDETolConfTol
- constructor(L: gp_Lin2d, DL: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between a line and a parabola from gp.
Parameters (6)LDLPDPTolConfTol
- constructor(L: gp_Lin2d, DL: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between a line and an hyperbola.
Parameters (6)LDLHDHTolConfTol
- constructor(C1: gp_Circ2d, D1: IntRes2d_Domain, C2: gp_Circ2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between 2 circles from gp. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
Parameters (6)C1D1C2D2TolConfTol
- constructor(C: gp_Circ2d, DC: IntRes2d_Domain, E: gp_Elips2d, DE: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between a circle and an ellipse. The exception ConstructionError is raised if the method IsClosed of one the domain returns False.
Parameters (6)CDCEDETolConfTol
- constructor(C: gp_Circ2d, DC: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between a circle and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
Parameters (6)CDCPDPTolConfTol
- constructor(C: gp_Circ2d, DC: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between a circle and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
Parameters (6)CDCHDHTolConfTol
- constructor(E1: gp_Elips2d, D1: IntRes2d_Domain, E2: gp_Elips2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between 2 ellipses. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
Parameters (6)E1D1E2D2TolConfTol
- constructor(E: gp_Elips2d, DE: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between an ellipse and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
Parameters (6)EDEPDPTolConfTol
- constructor(E: gp_Elips2d, DE: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between an ellipse and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
Parameters (6)EDEHDHTolConfTol
- constructor(P1: gp_Parab2d, D1: IntRes2d_Domain, P2: gp_Parab2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between 2 parabolas.
Parameters (6)P1D1P2D2TolConfTol
- constructor(P: gp_Parab2d, DP: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between a parabola and an hyperbola.
Parameters (6)PDPHDHTolConfTol
- constructor(H1: gp_Hypr2d, D1: IntRes2d_Domain, H2: gp_Hypr2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntConicConic
Intersection between 2 hyperbolas.
Parameters (6)H1D1H2D2TolConfTol
Instance methods(15)
- Perform(L1: gp_Lin2d, D1: IntRes2d_Domain, L2: gp_Lin2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between 2 lines from gp.
Parameters (6)L1D1L2D2TolConfTol
- Perform(L: gp_Lin2d, DL: IntRes2d_Domain, C: gp_Circ2d, DC: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a line and a circle. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
Parameters (6)LDLCDCTolConfTol
- Perform(L: gp_Lin2d, DL: IntRes2d_Domain, E: gp_Elips2d, DE: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a line and an ellipse. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
Parameters (6)LDLEDETolConfTol
- Perform(L: gp_Lin2d, DL: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a line and a parabola from gp.
Parameters (6)LDLPDPTolConfTol
- Perform(L: gp_Lin2d, DL: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a line and an hyperbola.
Parameters (6)LDLHDHTolConfTol
- Perform(C1: gp_Circ2d, D1: IntRes2d_Domain, C2: gp_Circ2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between 2 circles from gp. The exception ConstructionError is raised if the method IsClosed of the domain of one of the circle returns False.
Parameters (6)C1D1C2D2TolConfTol
- Perform(C: gp_Circ2d, DC: IntRes2d_Domain, E: gp_Elips2d, DE: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a circle and an ellipse. The exception ConstructionError is raised if the method IsClosed of one the domain returns False.
Parameters (6)CDCEDETolConfTol
- Perform(C: gp_Circ2d, DC: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a circle and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
Parameters (6)CDCPDPTolConfTol
- Perform(C: gp_Circ2d, DC: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a circle and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
Parameters (6)CDCHDHTolConfTol
- Perform(E1: gp_Elips2d, D1: IntRes2d_Domain, E2: gp_Elips2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between 2 ellipses. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
Parameters (6)E1D1E2D2TolConfTol
- Perform(E: gp_Elips2d, DE: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between an ellipse and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
Parameters (6)EDEPDPTolConfTol
- Perform(E: gp_Elips2d, DE: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between an ellipse and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
Parameters (6)EDEHDHTolConfTol
- Perform(P1: gp_Parab2d, D1: IntRes2d_Domain, P2: gp_Parab2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between 2 parabolas.
Parameters (6)P1D1P2D2TolConfTol
- Perform(P: gp_Parab2d, DP: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a parabola and an hyperbola.
Parameters (6)PDPHDHTolConfTol
- Perform(H1: gp_Hypr2d, D1: IntRes2d_Domain, H2: gp_Hypr2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between 2 hyperbolas.
Parameters (6)H1D1H2D2TolConfTol
IntCurve_IntImpConicParConic
Constructors(2)
Empty constructor.
- constructor(ITool: IntCurve_IConicTool, Dom1: IntRes2d_Domain, PCurve: IntCurve_PConic, Dom2: IntRes2d_Domain, TolConf: number, Tol: number): IntCurve_IntImpConicParConic
Intersection between an implicit curve and a parametrised curve. The exception ConstructionError is raised if the domain of the parametrised curve does not verify HasFirstPoint and HasLastPoint return True.
Parameters (6)IToolDom1PCurveDom2TolConfTol
Instance methods(4)
- Perform(ITool: IntCurve_IConicTool, Dom1: IntRes2d_Domain, PCurve: IntCurve_PConic, Dom2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between an implicit curve and a parametrised curve. The exception ConstructionError is raised if the domain of the parametrised curve does not verify HasFirstPoint and HasLastPoint return True.
Parameters (6)IToolDom1PCurveDom2TolConfTol
- FindU(parameter: number, point: gp_Pnt2d, TheParCurev: IntCurve_PConic, TheImpTool: IntCurve_IConicTool): numberParameters (4)
parameterpointTheParCurevTheImpTool
- FindV(parameter: number, point: gp_Pnt2d, TheImpTool: IntCurve_IConicTool, ParCurve: IntCurve_PConic, TheParCurveDomain: IntRes2d_Domain, V0: number, V1: number, Tolerance: number): numberParameters (8)
parameterpointTheImpToolParCurveTheParCurveDomainV0V1Tolerance
- And_Domaine_Objet1_Intersections(TheImpTool: IntCurve_IConicTool, TheParCurve: IntCurve_PConic, TheImpCurveDomain: IntRes2d_Domain, TheParCurveDomain: IntRes2d_Domain, NbResultats: number, Inter2_And_Domain2: NCollection_Array1_double, Inter1: NCollection_Array1_double, Resultat1: NCollection_Array1_double, Resultat2: NCollection_Array1_double, EpsNul: number): { NbResultats: number }Parameters (10)
TheImpToolTheParCurveTheImpCurveDomainTheParCurveDomainNbResultatsInter2_And_Domain2Inter1Resultat1Resultat2EpsNul
IntCurve_MyImpParToolOfIntImpConicParConic
Constructors(1)
- constructor(IT: IntCurve_IConicTool, PC: IntCurve_PConic): IntCurve_MyImpParToolOfIntImpConicParConic
Constructor of the class.
Parameters (2)ITPC
Instance methods(3)
- Value(X: number, F: number): { returnValue: boolean; F: number }
Computes the value of the signed distance between the implicit curve and the point at parameter Param on the parametrised curve.
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 previous function at parameter Param.
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.
Parameters (3)XFD
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.D: updated value from the call.
IntCurve_PConic
This class represents a conic from gp as a parametric curve ( in order to be used by the class PConicTool from IntCurve).
Constructors(6)
- Parameters (1)
PC
- Parameters (1)
E
- Parameters (1)
C
- Parameters (1)
P
- Parameters (1)
H
- Parameters (1)
L
Instance methods(8)
- SetEpsX(EpsDist: number): void
EpsX is a internal tolerance used in math algorithms, usually about 1e-10 (See FunctionAllRoots for more details).
Parameters (1)EpsDist
- SetAccuracy(Nb: number): void
Accuracy is the number of samples used to approximate the parametric curve on its domain.
Parameters (1)Nb
- Accuracy(): number
- EpsX(): number
The Conics are manipulated as objects which only depend on three parameters : Axis and two Real from Standards. Type Curve is used to select the correct Conic.
- Param1(): number
- Param2(): number
IntCurve_PConicTool
Implementation of the ParTool from IntImpParGen for conics of gp, using the class PConic from IntCurve.
Constructors(1)
Static methods(6)
- EpsX(C: IntCurve_PConic): numberParameters (1)
C
- NbSamples(C: IntCurve_PConic): numberParameters (1)
C
- NbSamples(C: IntCurve_PConic, U0: number, U1: number): numberParameters (3)
CU0U1
- Value(C: IntCurve_PConic, X: number): gp_Pnt2dParameters (2)
CX
- D1(C: IntCurve_PConic, U: number, P: gp_Pnt2d, T: gp_Vec2d): voidParameters (4)
CUPT
- D2(C: IntCurve_PConic, U: number, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d): voidParameters (5)
CUPTN
IntCurve_ProjectOnPConicTool
This class provides a tool which computes the parameter of a point near a parametric conic.
Constructors(1)
Static methods(2)
- FindParameter(C: IntCurve_PConic, Pnt: gp_Pnt2d, Tol: number): number
Returns the parameter V of the point on the parametric curve corresponding to the Point Pnt. The Correspondence between Pnt and the point P(V) on the parametric curve must be coherent with the way of determination of the signed distance between a point and the implicit curve. Tol is the tolerance on the distance between a point and the parametrised curve. In that case, no bounds are given. The research of the right parameter has to be made on the natural parametric domain of the curve.
Parameters (3)CPntTol
- FindParameter(C: IntCurve_PConic, Pnt: gp_Pnt2d, LowParameter: number, HighParameter: number, Tol: number): number
Returns the parameter V of the point on the parametric curve corresponding to the Point Pnt.
The Correspondence between Pnt and the point P(V) on the parametric curve must be coherent with the way of determination of the signed distance between a point and the implicit curve. Tol is the tolerance on the distance between a point and the parametrised curve. LowParameter and HighParameter give the boundaries of the interval in which the parameter certainly lies. These parameters are given to implement a more efficient algorithm. So, it is not necessary to check that the returned value verifies LowParameter <= Value <= HighParameter.Parameters (5)CPntLowParameterHighParameterTol
Interval
Constructors(4)
- constructor(Domain: IntRes2d_Domain): IntervalParameters (1)
Domain
- constructor(a: number, b: number): IntervalParameters (2)
ab
- constructor(a: number, hf: boolean, b: number, hl: boolean): IntervalParameters (4)
ahfbhl
Instance methods(2)
- Length(): number
- IntersectionWithBounded(Inter: Interval): IntervalParameters (1)
Inter
Properties(5)
PeriodicInterval
Constructors(3)
- constructor(Domain: IntRes2d_Domain): PeriodicIntervalParameters (1)
Domain
- constructor(a: number, b: number): PeriodicIntervalParameters (2)
ab