OCC.Core.IntCurve module¶
IntCurve module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_intcurve.html
-
class
IntCurve_IConicTool
(*args)¶ Bases:
object
- Return type
None:param IT: :type IT: IntCurve_IConicTool :rtype: None:param E: :type E: gp_Elips2d :rtype: None:param L: :type L: gp_Lin2d :rtype: None:param C: :type C: gp_Circ2d :rtype: None:param P: :type P: gp_Parab2d :rtype: None:param H: :type H: gp_Hypr2d :rtype: None
-
D1
()¶ - Parameters
U –
- type U
float
- param P
- type P
gp_Pnt2d
- param T
- type T
gp_Vec2d
- rtype
None
-
D2
()¶ - Parameters
U –
- type U
float
- param P
- type P
gp_Pnt2d
- param T
- type T
gp_Vec2d
- param N
- type N
gp_Vec2d
- rtype
None
-
Distance
()¶ - Computes the value of the signed distance between the point P and the implicit curve.
- param P
- type P
gp_Pnt2d
- rtype
float
-
FindParameter
()¶ - Returns the parameter U of the point on the implicit curve corresponding to the point P. The correspondance between P and the point P(U) on the implicit curve must be coherent with the way of determination of the signed distance.
- param P
- type P
gp_Pnt2d
- rtype
float
-
GradDistance
()¶ - Computes the Gradient of the Signed Distance between a point and the implicit curve, at the point P.
- param P
- type P
gp_Pnt2d
- rtype
gp_Vec2d
-
Value
()¶ - Parameters
X –
- type X
float
- rtype
gp_Pnt2d
-
property
thisown
¶ The membership flag
-
class
IntCurve_IntConicConic
(*args)¶ Bases:
OCC.Core.IntRes2d.IntRes2d_Intersection
- Empty Constructor
- rtype
None* Intersection between 2 lines from gp.
- param L1
- type L1
gp_Lin2d
- param D1
- type D1
IntRes2d_Domain
- param L2
- type L2
gp_Lin2d
- param D2
- type D2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a line and a circle. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
- param L
- type L
gp_Lin2d
- param DL
- type DL
IntRes2d_Domain
- param C
- type C
gp_Circ2d
- param DC
- type DC
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a line and an ellipse. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
- param L
- type L
gp_Lin2d
- param DL
- type DL
IntRes2d_Domain
- param E
- type E
gp_Elips2d
- param DE
- type DE
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a line and a parabola from gp.
- param L
- type L
gp_Lin2d
- param DL
- type DL
IntRes2d_Domain
- param P
- type P
gp_Parab2d
- param DP
- type DP
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a line and an hyperbola.
- param L
- type L
gp_Lin2d
- param DL
- type DL
IntRes2d_Domain
- param H
- type H
gp_Hypr2d
- param DH
- type DH
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between 2 circles from gp. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
- param C1
- type C1
gp_Circ2d
- param D1
- type D1
IntRes2d_Domain
- param C2
- type C2
gp_Circ2d
- param D2
- type D2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a circle and an ellipse. The exception ConstructionError is raised if the method IsClosed of one the domain returns False.
- param C
- type C
gp_Circ2d
- param DC
- type DC
IntRes2d_Domain
- param E
- type E
gp_Elips2d
- param DE
- type DE
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a circle and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
- param C
- type C
gp_Circ2d
- param DC
- type DC
IntRes2d_Domain
- param P
- type P
gp_Parab2d
- param DP
- type DP
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a circle and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
- param C
- type C
gp_Circ2d
- param DC
- type DC
IntRes2d_Domain
- param H
- type H
gp_Hypr2d
- param DH
- type DH
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between 2 ellipses. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
- param E1
- type E1
gp_Elips2d
- param D1
- type D1
IntRes2d_Domain
- param E2
- type E2
gp_Elips2d
- param D2
- type D2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between an ellipse and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
- param E
- type E
gp_Elips2d
- param DE
- type DE
IntRes2d_Domain
- param P
- type P
gp_Parab2d
- param DP
- type DP
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between an ellipse and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
- param E
- type E
gp_Elips2d
- param DE
- type DE
IntRes2d_Domain
- param H
- type H
gp_Hypr2d
- param DH
- type DH
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between 2 parabolas.
- param P1
- type P1
gp_Parab2d
- param D1
- type D1
IntRes2d_Domain
- param P2
- type P2
gp_Parab2d
- param D2
- type D2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a parabola and an hyperbola.
- param P
- type P
gp_Parab2d
- param DP
- type DP
IntRes2d_Domain
- param H
- type H
gp_Hypr2d
- param DH
- type DH
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between 2 hyperbolas.
- param H1
- type H1
gp_Hypr2d
- param D1
- type D1
IntRes2d_Domain
- param H2
- type H2
gp_Hypr2d
- param D2
- type D2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None
-
Perform
()¶ - Intersection between 2 lines from gp.
- param L1
- type L1
gp_Lin2d
- param D1
- type D1
IntRes2d_Domain
- param L2
- type L2
gp_Lin2d
- param D2
- type D2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a line and a circle. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
- param L
- type L
gp_Lin2d
- param DL
- type DL
IntRes2d_Domain
- param C
- type C
gp_Circ2d
- param DC
- type DC
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a line and an ellipse. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
- param L
- type L
gp_Lin2d
- param DL
- type DL
IntRes2d_Domain
- param E
- type E
gp_Elips2d
- param DE
- type DE
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a line and a parabola from gp.
- param L
- type L
gp_Lin2d
- param DL
- type DL
IntRes2d_Domain
- param P
- type P
gp_Parab2d
- param DP
- type DP
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a line and an hyperbola.
- param L
- type L
gp_Lin2d
- param DL
- type DL
IntRes2d_Domain
- param H
- type H
gp_Hypr2d
- param DH
- type DH
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* 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.
- param C1
- type C1
gp_Circ2d
- param D1
- type D1
IntRes2d_Domain
- param C2
- type C2
gp_Circ2d
- param D2
- type D2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a circle and an ellipse. The exception ConstructionError is raised if the method IsClosed of one the domain returns False.
- param C
- type C
gp_Circ2d
- param DC
- type DC
IntRes2d_Domain
- param E
- type E
gp_Elips2d
- param DE
- type DE
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a circle and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
- param C
- type C
gp_Circ2d
- param DC
- type DC
IntRes2d_Domain
- param P
- type P
gp_Parab2d
- param DP
- type DP
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a circle and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
- param C
- type C
gp_Circ2d
- param DC
- type DC
IntRes2d_Domain
- param H
- type H
gp_Hypr2d
- param DH
- type DH
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between 2 ellipses. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
- param E1
- type E1
gp_Elips2d
- param D1
- type D1
IntRes2d_Domain
- param E2
- type E2
gp_Elips2d
- param D2
- type D2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between an ellipse and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
- param E
- type E
gp_Elips2d
- param DE
- type DE
IntRes2d_Domain
- param P
- type P
gp_Parab2d
- param DP
- type DP
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between an ellipse and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
- param E
- type E
gp_Elips2d
- param DE
- type DE
IntRes2d_Domain
- param H
- type H
gp_Hypr2d
- param DH
- type DH
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between 2 parabolas.
- param P1
- type P1
gp_Parab2d
- param D1
- type D1
IntRes2d_Domain
- param P2
- type P2
gp_Parab2d
- param D2
- type D2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a parabola and an hyperbola.
- param P
- type P
gp_Parab2d
- param DP
- type DP
IntRes2d_Domain
- param H
- type H
gp_Hypr2d
- param DH
- type DH
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None* Intersection between 2 hyperbolas.
- param H1
- type H1
gp_Hypr2d
- param D1
- type D1
IntRes2d_Domain
- param H2
- type H2
gp_Hypr2d
- param D2
- type D2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntCurve_IntImpConicParConic
(*args)¶ Bases:
OCC.Core.IntRes2d.IntRes2d_Intersection
- Empty constructor.
- rtype
None* 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.
- param ITool
- type ITool
IntCurve_IConicTool
- param Dom1
- type Dom1
IntRes2d_Domain
- param PCurve
- type PCurve
IntCurve_PConic
- param Dom2
- type Dom2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None
-
And_Domaine_Objet1_Intersections
()¶ - Parameters
TheImpTool –
- type TheImpTool
IntCurve_IConicTool
- param TheParCurve
- type TheParCurve
IntCurve_PConic
- param TheImpCurveDomain
- type TheImpCurveDomain
IntRes2d_Domain
- param TheParCurveDomain
- type TheParCurveDomain
IntRes2d_Domain
- param NbResultats
- type NbResultats
int
- param Inter2_And_Domain2
- type Inter2_And_Domain2
TColStd_Array1OfReal
- param Inter1
- type Inter1
TColStd_Array1OfReal
- param Resultat1
- type Resultat1
TColStd_Array1OfReal
- param Resultat2
- type Resultat2
TColStd_Array1OfReal
- param EpsNul
- type EpsNul
float
- rtype
None
-
FindU
()¶ - Parameters
parameter –
- type parameter
float
- param point
- type point
gp_Pnt2d
- param TheParCurev
- type TheParCurev
IntCurve_PConic
- param TheImpTool
- type TheImpTool
IntCurve_IConicTool
- rtype
float
-
FindV
()¶ - Parameters
parameter –
- type parameter
float
- param point
- type point
gp_Pnt2d
- param TheImpTool
- type TheImpTool
IntCurve_IConicTool
- param ParCurve
- type ParCurve
IntCurve_PConic
- param TheParCurveDomain
- type TheParCurveDomain
IntRes2d_Domain
- param V0
- type V0
float
- param V1
- type V1
float
- param Tolerance
- type Tolerance
float
- rtype
float
-
Perform
()¶ - 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.
- param ITool
- type ITool
IntCurve_IConicTool
- param Dom1
- type Dom1
IntRes2d_Domain
- param PCurve
- type PCurve
IntCurve_PConic
- param Dom2
- type Dom2
IntRes2d_Domain
- param TolConf
- type TolConf
float
- param Tol
- type Tol
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntCurve_MyImpParToolOfIntImpConicParConic
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Constructor of the class.
- param IT
- type IT
IntCurve_IConicTool
- param PC
- type PC
IntCurve_PConic
- rtype
None
-
property
thisown
¶ The membership flag
-
class
IntCurve_PConic
(*args)¶ Bases:
object
- Parameters
PC –
- type PC
IntCurve_PConic
- rtype
None:param E:
- type E
gp_Elips2d
- rtype
None:param C:
- type C
gp_Circ2d
- rtype
None:param P:
- type P
gp_Parab2d
- rtype
None:param H:
- type H
gp_Hypr2d
- rtype
None:param L:
- type L
gp_Lin2d
- rtype
None
-
SetAccuracy
()¶ - Accuracy is the number of samples used to approximate the parametric curve on its domain.
- param Nb
- type Nb
int
- rtype
None
-
SetEpsX
()¶ - EpsX is a internal tolerance used in math algorithms, usually about 1e-10 (See FunctionAllRoots for more details)
- param EpsDist
- type EpsDist
float
- rtype
None
-
TypeCurve
()¶ - The Conics are manipulated as objects which only depend on three parametersAxis and two Real from Standards. Type Curve is used to select the correct Conic.
- rtype
GeomAbs_CurveType
-
property
thisown
¶ The membership flag
-
class
IntCurve_PConicTool
¶ Bases:
object
-
static
D1
()¶ - Parameters
C –
- type C
IntCurve_PConic
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param T
- type T
gp_Vec2d
- rtype
void
-
static
D2
()¶ - Parameters
C –
- type C
IntCurve_PConic
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param T
- type T
gp_Vec2d
- param N
- type N
gp_Vec2d
- rtype
void
-
static
EpsX
()¶ - Parameters
C –
- type C
IntCurve_PConic
- rtype
float
-
static
NbSamples
()¶ - Parameters
C –
- type C
IntCurve_PConic
- rtype
int:param C:
- type C
IntCurve_PConic
- param U0
- type U0
float
- param U1
- type U1
float
- rtype
int
-
static
Value
()¶ - Parameters
C –
- type C
IntCurve_PConic
- param X
- type X
float
- rtype
gp_Pnt2d
-
property
thisown
¶ The membership flag
-
static
-
class
IntCurve_ProjectOnPConicTool
¶ Bases:
object
-
static
FindParameter
()¶ - Returns the parameter V of the point on the parametric curve corresponding to the Point Pnt. The Correspondance 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 rigth parameter has to be made on the natural parametric domain of the curve.
- param C
- type C
IntCurve_PConic
- param Pnt
- type Pnt
gp_Pnt2d
- param Tol
- type Tol
float
- rtype
float* Returns the parameter V of the point on the parametric curve corresponding to the Point Pnt. The Correspondance 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 wich the parameter certainly lies. These parameters are given to implement a more efficient algoritm. So, it is not necessary to check that the returned value verifies LowParameter <= Value <= HighParameter.
- param C
- type C
IntCurve_PConic
- param Pnt
- type Pnt
gp_Pnt2d
- param LowParameter
- type LowParameter
float
- param HighParameter
- type HighParameter
float
- param Tol
- type Tol
float
- rtype
float
-
property
thisown
¶ The membership flag
-
static