OCC.Geom2dInt module

Intersection between two Curves2 from Geom2dAdaptor-Level: PublicAll the methods of the classes are public.

class Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter(*args)

Bases: object

Parameters:
  • C1 (Adaptor2d_Curve2d &) –
  • C2 (Adaptor2d_Curve2d &) –
  • Tol (float) –
Return type:

None

AnErrorOccurred()
Return type:bool
NbRoots()
Return type:int
Perform()
Parameters:
  • Poly1 (Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter &) –
  • Poly2 (Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter &) –
  • NumSegOn1 (int &) –
  • NumSegOn2 (int &) –
  • ParamOnSeg1 (float &) –
  • ParamOnSeg2 (float &) –
  • Uo (float) –
  • Vo (float) –
  • UInf (float) –
  • VInf (float) –
  • USup (float) –
  • VSup (float) –
Return type:

None

Return type:

None

Roots()
Parameters:
  • U (float &) –
  • V (float &) –
Return type:

None

thisown

The membership flag

class Geom2dInt_GInter(*args)

Bases: OCC.IntRes2d.IntRes2d_Intersection

Return type:

None

Parameters:
  • C (Adaptor2d_Curve2d &) –
  • TolConf (float) –
  • Tol (float) –
  • C
  • D (IntRes2d_Domain &) –
  • TolConf
  • Tol
  • C1 (Adaptor2d_Curve2d &) –
  • C2 (Adaptor2d_Curve2d &) –
  • TolConf
  • Tol
  • C1
  • D1 (IntRes2d_Domain &) –
  • C2
  • TolConf
  • Tol
  • C1
  • C2
  • D2 (IntRes2d_Domain &) –
  • TolConf
  • Tol
  • C1
  • D1
  • C2
  • D2
  • TolConf
  • Tol
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

ComputeDomain()
Parameters:
  • C1 (Adaptor2d_Curve2d &) –
  • TolDomain (float) –
Return type:

IntRes2d_Domain

Perform()
Parameters:
  • C1 (Adaptor2d_Curve2d &) –
  • D1 (IntRes2d_Domain &) –
  • C2 (Adaptor2d_Curve2d &) –
  • D2 (IntRes2d_Domain &) –
  • TolConf (float) –
  • Tol (float) –
  • C1
  • C2
  • TolConf
  • Tol
  • C1
  • D1
  • TolConf
  • Tol
  • C1
  • TolConf
  • Tol
  • C1
  • D1
  • C2
  • TolConf
  • Tol
  • C1
  • C2
  • D2
  • TolConf
  • Tol
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

thisown

The membership flag

class Geom2dInt_Geom2dCurveTool

Bases: object

static Circle()
  • Returns the Circ2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Circle.
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Circ2d
static D0()
Parameters:
Return type:

void

static D1()
Parameters:
Return type:

void

static D2()
Parameters:
Return type:

void

static D3()
Parameters:
Return type:

void

static DN()
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • U (float) –
  • N (int) –
Return type:

gp_Vec2d

static Degree()
Parameters:C (Adaptor2d_Curve2d &) –
Return type:int
static Ellipse()
  • Returns the Elips2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Ellipse.
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Elips2d
static EpsX()
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • C
  • Eps_XYZ (float) –
Return type:

float

Return type:

float

static FirstParameter()
Parameters:C (Adaptor2d_Curve2d &) –
Return type:float
static GetInterval()
  • output the bounds of interval of index <Index> used if Type == Composite.
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Index (int) –
  • Tab (TColStd_Array1OfReal &) –
  • U1 (float &) –
  • U2 (float &) –
Return type:

void

static GetType()
Parameters:C (Adaptor2d_Curve2d &) –
Return type:GeomAbs_CurveType
static Hyperbola()
  • Returns the Hypr2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Hyperbola.
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Hypr2d
static Intervals()
  • compute Tab.
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Tab (TColStd_Array1OfReal &) –
Return type:

void

static LastParameter()
Parameters:C (Adaptor2d_Curve2d &) –
Return type:float
static Line()
  • Returns the Lin2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Line.
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Lin2d
static NbIntervals()
  • output the number of interval of continuity C2 of the curve
Parameters:C (Adaptor2d_Curve2d &) –
Return type:int
static NbSamples()
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • C
  • U0 (float) –
  • U1 (float) –
Return type:

int

Return type:

int

static Parabola()
  • Returns the Parab2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Parabola.
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Parab2d
static Value()
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • X (float) –
Return type:

gp_Pnt2d

thisown

The membership flag

Geom2dInt_Geom2dCurveTool_Circle()
  • Returns the Circ2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Circle.
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Circ2d
Geom2dInt_Geom2dCurveTool_D0()
Parameters:
Return type:

void

Geom2dInt_Geom2dCurveTool_D1()
Parameters:
Return type:

void

Geom2dInt_Geom2dCurveTool_D2()
Parameters:
Return type:

void

Geom2dInt_Geom2dCurveTool_D3()
Parameters:
Return type:

void

Geom2dInt_Geom2dCurveTool_DN()
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • U (float) –
  • N (int) –
Return type:

gp_Vec2d

Geom2dInt_Geom2dCurveTool_Degree()
Parameters:C (Adaptor2d_Curve2d &) –
Return type:int
Geom2dInt_Geom2dCurveTool_Ellipse()
  • Returns the Elips2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Ellipse.
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Elips2d
Geom2dInt_Geom2dCurveTool_EpsX()
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • C
  • Eps_XYZ (float) –
Return type:

float

Return type:

float

Geom2dInt_Geom2dCurveTool_FirstParameter()
Parameters:C (Adaptor2d_Curve2d &) –
Return type:float
Geom2dInt_Geom2dCurveTool_GetInterval()
  • output the bounds of interval of index <Index> used if Type == Composite.
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Index (int) –
  • Tab (TColStd_Array1OfReal &) –
  • U1 (float &) –
  • U2 (float &) –
Return type:

void

Geom2dInt_Geom2dCurveTool_GetType()
Parameters:C (Adaptor2d_Curve2d &) –
Return type:GeomAbs_CurveType
Geom2dInt_Geom2dCurveTool_Hyperbola()
  • Returns the Hypr2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Hyperbola.
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Hypr2d
Geom2dInt_Geom2dCurveTool_Intervals()
  • compute Tab.
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Tab (TColStd_Array1OfReal &) –
Return type:

void

Geom2dInt_Geom2dCurveTool_LastParameter()
Parameters:C (Adaptor2d_Curve2d &) –
Return type:float
Geom2dInt_Geom2dCurveTool_Line()
  • Returns the Lin2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Line.
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Lin2d
Geom2dInt_Geom2dCurveTool_NbIntervals()
  • output the number of interval of continuity C2 of the curve
Parameters:C (Adaptor2d_Curve2d &) –
Return type:int
Geom2dInt_Geom2dCurveTool_NbSamples()
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • C
  • U0 (float) –
  • U1 (float) –
Return type:

int

Return type:

int

Geom2dInt_Geom2dCurveTool_Parabola()
  • Returns the Parab2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Parabola.
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Parab2d
Geom2dInt_Geom2dCurveTool_Value()
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • X (float) –
Return type:

gp_Pnt2d

class Geom2dInt_IntConicCurveOfGInter(*args)

Bases: OCC.IntRes2d.IntRes2d_Intersection

Return type:

None

Parameters:
  • L (gp_Lin2d) –
  • D1 (IntRes2d_Domain &) –
  • PCurve (Adaptor2d_Curve2d &) –
  • D2 (IntRes2d_Domain &) –
  • TolConf (float) –
  • Tol (float) –
  • C (gp_Circ2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • E (gp_Elips2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • Prb (gp_Parab2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • H (gp_Hypr2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Perform()
Parameters:
  • L (gp_Lin2d) –
  • D1 (IntRes2d_Domain &) –
  • PCurve (Adaptor2d_Curve2d &) –
  • D2 (IntRes2d_Domain &) –
  • TolConf (float) –
  • Tol (float) –
  • C (gp_Circ2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • E (gp_Elips2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • Prb (gp_Parab2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • H (gp_Hypr2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

thisown

The membership flag

class Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter(*args)

Bases: OCC.math.math_FunctionWithDerivative

Parameters:
  • IT (IntCurve_IConicTool &) –
  • PC (Adaptor2d_Curve2d &) –
Return type:

None

thisown

The membership flag

class Geom2dInt_PCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(*args)

Bases: OCC.math.math_FunctionWithDerivative

Return type:

None

Parameters:
  • P (gp_Pnt2d) –
  • C (Adaptor2d_Curve2d &) –
Return type:

None

Initialize()
Parameters:C (Adaptor2d_Curve2d &) –
Return type:None
IsMin()
Parameters:N (int) –
Return type:bool
NbExt()
Return type:int
Point()
Parameters:N (int) –
Return type:Extrema_POnCurv2d
SearchOfTolerance()
Return type:float
SetPoint()
Parameters:P (gp_Pnt2d) –
Return type:None
SquareDistance()
Parameters:N (int) –
Return type:float
SubIntervalInitialize()
Parameters:
Return type:

None

thisown

The membership flag

class Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(*args)

Bases: OCC.TCollection.TCollection_BaseSequence

Return type:None
Parameters:Other (Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter &) –
Return type:None
Append()
Parameters:
  • T (Extrema_POnCurv2d &) –
  • S (Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter &) –
Return type:Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter
ChangeValue()
Parameters:Index (int) –
Return type:Extrema_POnCurv2d
Clear()
Return type:None
First()
Return type:Extrema_POnCurv2d
InsertAfter()
Parameters:
  • Index (int) –
  • T (Extrema_POnCurv2d &) –
  • Index
  • S (Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (int) –
  • T (Extrema_POnCurv2d &) –
  • Index
  • S (Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter &) –
Return type:

None

Return type:

None

Last()
Return type:Extrema_POnCurv2d
Prepend()
Parameters:
  • T (Extrema_POnCurv2d &) –
  • S (Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (int) –
  • FromIndex (int) –
  • ToIndex (int) –
Return type:

None

Return type:

None

Set()
Parameters:Other (Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter &) –
Return type:Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter
SetValue()
Parameters:
  • Index (int) –
  • I (Extrema_POnCurv2d &) –
Return type:

None

Split()
Parameters:
  • Index (int) –
  • Sub (Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter &) –
Return type:

None

Value()
Parameters:Index (int) –
Return type:Extrema_POnCurv2d
thisown

The membership flag

class Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(*args)

Bases: OCC.TCollection.TCollection_SeqNode

Parameters:
  • I (Extrema_POnCurv2d &) –
  • n (TCollection_SeqNodePtr &) –
  • p (TCollection_SeqNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:Extrema_POnCurv2d
thisown

The membership flag

class Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter

Bases: object

thisown

The membership flag

class Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter(*args)

Bases: OCC.math.math_FunctionSetWithDerivatives

Parameters:
  • curve1 (Adaptor2d_Curve2d &) –
  • curve2 (Adaptor2d_Curve2d &) –
Return type:

None

thisown

The membership flag

class Geom2dInt_TheIntConicCurveOfGInter(*args)

Bases: OCC.IntRes2d.IntRes2d_Intersection

Return type:

None

Parameters:
  • L (gp_Lin2d) –
  • D1 (IntRes2d_Domain &) –
  • PCurve (Adaptor2d_Curve2d &) –
  • D2 (IntRes2d_Domain &) –
  • TolConf (float) –
  • Tol (float) –
  • C (gp_Circ2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • E (gp_Elips2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • Prb (gp_Parab2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • H (gp_Hypr2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Perform()
Parameters:
  • L (gp_Lin2d) –
  • D1 (IntRes2d_Domain &) –
  • PCurve (Adaptor2d_Curve2d &) –
  • D2 (IntRes2d_Domain &) –
  • TolConf (float) –
  • Tol (float) –
  • C (gp_Circ2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • E (gp_Elips2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • Prb (gp_Parab2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
  • H (gp_Hypr2d) –
  • D1
  • PCurve
  • D2
  • TolConf
  • Tol
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

thisown

The membership flag

class Geom2dInt_TheIntPCurvePCurveOfGInter(*args)

Bases: OCC.IntRes2d.IntRes2d_Intersection

Return type:None
Perform()
Parameters:
  • Curve1 (Adaptor2d_Curve2d &) –
  • Domain1 (IntRes2d_Domain &) –
  • Curve2 (Adaptor2d_Curve2d &) –
  • Domain2 (IntRes2d_Domain &) –
  • TolConf (float) –
  • Tol (float) –
  • Curve1
  • Domain1
  • TolConf
  • Tol
Return type:

None

Return type:

None

thisown

The membership flag

class Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter(*args)

Bases: OCC.IntRes2d.IntRes2d_Intersection

Return type:

None

Parameters:
  • ITool (IntCurve_IConicTool &) –
  • Dom1 (IntRes2d_Domain &) –
  • PCurve (Adaptor2d_Curve2d &) –
  • Dom2 (IntRes2d_Domain &) –
  • TolConf (float) –
  • Tol (float) –
Return type:

None

And_Domaine_Objet1_Intersections()
Parameters:
  • TheImpTool (IntCurve_IConicTool &) –
  • TheParCurve (Adaptor2d_Curve2d &) –
  • 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:

None

FindU()
Parameters:
  • parameter (float) –
  • point (gp_Pnt2d) –
  • TheParCurev (Adaptor2d_Curve2d &) –
  • TheImpTool (IntCurve_IConicTool &) –
Return type:

float

FindV()
Parameters:
  • parameter (float) –
  • point (gp_Pnt2d) –
  • TheImpTool (IntCurve_IConicTool &) –
  • ParCurve (Adaptor2d_Curve2d &) –
  • TheParCurveDomain (IntRes2d_Domain &) –
  • V0 (float) –
  • V1 (float) –
  • Tolerance (float) –
Return type:

float

Perform()
Parameters:
  • ITool (IntCurve_IConicTool &) –
  • Dom1 (IntRes2d_Domain &) –
  • PCurve (Adaptor2d_Curve2d &) –
  • Dom2 (IntRes2d_Domain &) –
  • TolConf (float) –
  • Tol (float) –
Return type:

None

thisown

The membership flag

class Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter(*args)

Bases: object

Return type:

None

Parameters:
  • P (gp_Pnt2d) –
  • C (Adaptor2d_Curve2d &) –
  • U0 (float) –
  • TolU (float) –
  • P
  • C
  • U0
  • Umin (float) –
  • Usup (float) –
  • TolU
Return type:

None

Return type:

None

Initialize()
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Umin (float) –
  • Usup (float) –
  • TolU (float) –
Return type:

None

IsDone()
Return type:bool
IsMin()
Return type:bool
Perform()
Parameters:
Return type:

None

Point()
Return type:Extrema_POnCurv2d
SquareDistance()
Return type:float
thisown

The membership flag

class Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter(*args)

Bases: OCC.Intf.Intf_Polygon2d

Parameters:
  • Curve (Adaptor2d_Curve2d &) –
  • NbPnt (int) –
  • Domain (IntRes2d_Domain &) –
  • Tol (float) –
Return type:

None

ApproxParamOnCurve()
Parameters:
  • Index (int) –
  • ParamOnLine (float) –
Return type:

float

AutoIntersectionIsPossible()
Return type:bool
CalculRegion()
Parameters:
Return type:

int

Closed()
Parameters:clos (bool) –
Return type:None
ComputeWithBox()
Parameters:
  • Curve (Adaptor2d_Curve2d &) –
  • OtherBox (Bnd_Box2d &) –
Return type:

None

Dump()
Return type:None
InfParameter()
Return type:float
SetDeflectionOverEstimation()
Parameters:x (float) –
Return type:None
SupParameter()
Return type:float
thisown

The membership flag

class Geom2dInt_TheProjPCurOfGInter

Bases: object

static FindParameter()
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Pnt (gp_Pnt2d) –
  • Tol (float) –
  • C
  • Pnt
  • LowParameter (float) –
  • HighParameter (float) –
  • Tol
Return type:

float

Return type:

float

thisown

The membership flag

Geom2dInt_TheProjPCurOfGInter_FindParameter()
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Pnt (gp_Pnt2d) –
  • Tol (float) –
  • C
  • Pnt
  • LowParameter (float) –
  • HighParameter (float) –
  • Tol
Return type:

float

Return type:

float

class Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

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