OCC.IntCurve module¶
This package provides algorithmes to intersect 2D curves,with domains.class IntConicConic : Algorithm used to intersect 2 conicsfrom gp with domains.class IntConicCurveGen : Generic algorithm used to intersecta conic from gp, and a parametrisedcurve.The parametrised Curve cannot be a Composite curve andcan not be a conic.class IntCurveCurveGen : Generic algorithm used to intersect 2curves. The resources on a curve arediscribed in the class CurveTool.class UserIntConicCurveGen: Generic algorithm used tointersect a Conic from gpand a parametrised curve.This curve can be either acomposite curve or a conic.-Level: AdvancedThe Classes <PConicTool,IConicTool,PConic,ProjectOnPConicTool,IntConicCurveGen,ProjPCurGen,UserIntConicCurveGen,IntPolyPolyGen,Polygon2dGen,DistBetweenPCurvesGen> are InternalThe Classe <IntCurveCurveGen> is Advanced
-
class
IntCurve_IConicTool
(*args)¶ Bases:
object
Return type: Parameters: - IT (IntCurve_IConicTool &) –
- E (gp_Elips2d) –
- L (gp_Lin2d) –
- C (gp_Circ2d) –
- P (gp_Parab2d) –
- H (gp_Hypr2d) –
Return type: Return type: Return type: Return type: Return type: Return type: -
Distance
()¶ - Computes the value of the signed distance between the point P and the implicit curve.
Parameters: P (gp_Pnt2d) – Return type: 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.
Parameters: P (gp_Pnt2d) – Return type: float
-
GradDistance
()¶ - Computes the Gradient of the Signed Distance between a point and the implicit curve, at the point P.
Parameters: P (gp_Pnt2d) – Return type: gp_Vec2d
-
thisown
¶ The membership flag
-
class
IntCurve_IntConicConic
(*args)¶ Bases:
OCC.IntRes2d.IntRes2d_Intersection
- Empty Constructor
Return type: None - Intersection between 2 lines from gp.
Parameters: Return type: - 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: Return type: - 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: - L (gp_Lin2d) –
- DL (IntRes2d_Domain &) –
- E (gp_Elips2d) –
- DE (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - Intersection between a line and a parabola from gp.
Parameters: - L (gp_Lin2d) –
- DL (IntRes2d_Domain &) –
- P (gp_Parab2d) –
- DP (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - Intersection between a line and an hyperbola.
Parameters: Return type: - Intersection between 2 circles from gp. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
Parameters: Return type: - Intersection between a circle and an ellipse. The exception ConstructionError is raised if the method IsClosed of one the domain returns False.
Parameters: - C (gp_Circ2d) –
- DC (IntRes2d_Domain &) –
- E (gp_Elips2d) –
- DE (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - 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: - C (gp_Circ2d) –
- DC (IntRes2d_Domain &) –
- P (gp_Parab2d) –
- DP (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - 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: Return type: - Intersection between 2 ellipses. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
Parameters: - E1 (gp_Elips2d) –
- D1 (IntRes2d_Domain &) –
- E2 (gp_Elips2d) –
- D2 (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - 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: - E (gp_Elips2d) –
- DE (IntRes2d_Domain &) –
- P (gp_Parab2d) –
- DP (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - 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: - E (gp_Elips2d) –
- DE (IntRes2d_Domain &) –
- H (gp_Hypr2d) –
- DH (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - Intersection between 2 parabolas.
Parameters: - P1 (gp_Parab2d) –
- D1 (IntRes2d_Domain &) –
- P2 (gp_Parab2d) –
- D2 (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - Intersection between a parabola and an hyperbola.
Parameters: - P (gp_Parab2d) –
- DP (IntRes2d_Domain &) –
- H (gp_Hypr2d) –
- DH (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - Intersection between 2 hyperbolas.
Parameters: Return type: -
Perform
()¶ - Intersection between 2 lines from gp.
Parameters: Return type: - 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: Return type: - 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: - L (gp_Lin2d) –
- DL (IntRes2d_Domain &) –
- E (gp_Elips2d) –
- DE (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - Intersection between a line and a parabola from gp.
Parameters: - L (gp_Lin2d) –
- DL (IntRes2d_Domain &) –
- P (gp_Parab2d) –
- DP (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - Intersection between a line and an hyperbola.
Parameters: Return type: - 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: Return type: - Intersection between a circle and an ellipse. The exception ConstructionError is raised if the method IsClosed of one the domain returns False.
Parameters: - C (gp_Circ2d) –
- DC (IntRes2d_Domain &) –
- E (gp_Elips2d) –
- DE (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - 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: - C (gp_Circ2d) –
- DC (IntRes2d_Domain &) –
- P (gp_Parab2d) –
- DP (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - 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: Return type: - Intersection between 2 ellipses. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
Parameters: - E1 (gp_Elips2d) –
- D1 (IntRes2d_Domain &) –
- E2 (gp_Elips2d) –
- D2 (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - 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: - E (gp_Elips2d) –
- DE (IntRes2d_Domain &) –
- P (gp_Parab2d) –
- DP (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - 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: - E (gp_Elips2d) –
- DE (IntRes2d_Domain &) –
- H (gp_Hypr2d) –
- DH (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - Intersection between 2 parabolas.
Parameters: - P1 (gp_Parab2d) –
- D1 (IntRes2d_Domain &) –
- P2 (gp_Parab2d) –
- D2 (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - Intersection between a parabola and an hyperbola.
Parameters: - P (gp_Parab2d) –
- DP (IntRes2d_Domain &) –
- H (gp_Hypr2d) –
- DH (IntRes2d_Domain &) –
- TolConf (float) –
- Tol (float) –
Return type: - Intersection between 2 hyperbolas.
Parameters: Return type:
-
thisown
¶ The membership flag
-
class
IntCurve_IntImpConicParConic
(*args)¶ Bases:
OCC.IntRes2d.IntRes2d_Intersection
Return type: Parameters: Return type: -
And_Domaine_Objet1_Intersections
()¶ Parameters: - TheImpTool (IntCurve_IConicTool &) –
- TheParCurve (IntCurve_PConic &) –
- TheImpCurveDomain (IntRes2d_Domain &) –
- TheParCurveDomain (IntRes2d_Domain &) –
- NbResultats (int &) –
- Inter2_And_Domain2 (TColStd_Array1OfReal &) –
- Inter1 (TColStd_Array1OfReal &) –
- Resultat1 (TColStd_Array1OfReal &) –
- Resultat2 (TColStd_Array1OfReal &) –
- EpsNul (float) –
Return type:
-
FindU
()¶ Parameters: Return type:
-
FindV
()¶ Parameters: Return type:
-
Perform
()¶ Parameters: Return type:
-
thisown
¶ The membership flag
-
-
class
IntCurve_MyImpParToolOfIntImpConicParConic
(*args)¶ Bases:
OCC.math.math_FunctionWithDerivative
Parameters: - IT (IntCurve_IConicTool &) –
- PC (IntCurve_PConic &) –
Return type: -
thisown
¶ The membership flag
-
class
IntCurve_PConic
(*args)¶ Bases:
object
Parameters: - PC (IntCurve_PConic &) –
- E (gp_Elips2d) –
- C (gp_Circ2d) –
- P (gp_Parab2d) –
- H (gp_Hypr2d) –
- L (gp_Lin2d) –
Return type: Return type: Return type: Return type: Return type: Return type: -
SetAccuracy
()¶ - Accuracy is the number of samples used to approximate the parametric curve on its domain.
Parameters: Nb (int) – Return type: None
-
SetEpsX
()¶ - EpsX is a internal tolerance used in math algorithms, usually about 1e-10 (See FunctionAllRoots for more details)
Parameters: EpsDist (float) – Return type: None
-
TypeCurve
()¶ - 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.
Return type: GeomAbs_CurveType
-
thisown
¶ The membership flag
-
class
IntCurve_PConicTool
¶ Bases:
object
-
static
D1
()¶ Parameters: Return type: void
-
static
D2
()¶ Parameters: Return type: void
-
static
NbSamples
()¶ Parameters: Return type: Return type:
-
thisown
¶ The membership flag
-
static
-
IntCurve_PConicTool_D1
()¶ Parameters: Return type: void
-
IntCurve_PConicTool_D2
()¶ Parameters: Return type: void
-
IntCurve_PConicTool_NbSamples
()¶ Parameters: Return type: Return type:
-
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.
Parameters: Return type: - 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.
Parameters: Return type:
-
thisown
¶ The membership flag
-
static
-
IntCurve_ProjectOnPConicTool_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.
Parameters: Return type: - 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.
Parameters: Return type:
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases