OCC.Geom2dInt module

class OCC.Geom2dInt.Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter(*args)

Bases: object

AnErrorOccurred()
Return type:bool
NbRoots()
Return type:int
Perform()
Parameters:
  • Poly1 (Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter &) –
  • Poly2 (Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter &) –
  • NumSegOn1 (Standard_Integer &) –
  • NumSegOn2 (Standard_Integer &) –
  • 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 OCC.Geom2dInt.Geom2dInt_GInter(*args)

Bases: OCC.IntRes2d.IntRes2d_Intersection

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 OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool(*args, **kwargs)

Bases: object

static Circle(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Circ2d
static D0(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • U (float) –
  • P (gp_Pnt2d) –
Return type:

void

static D1(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • T (gp_Vec2d) –
Return type:

void

static D2(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • T (gp_Vec2d) –
  • N (gp_Vec2d) –
Return type:

void

static D3(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • T (gp_Vec2d) –
  • N (gp_Vec2d) –
  • V (gp_Vec2d) –
Return type:

void

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

gp_Vec2d

static Degree(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:int
static Ellipse(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Elips2d
static EpsX(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • C
  • Eps_XYZ (float) –
Return type:

float

Return type:

float

static FirstParameter(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:float
static GetInterval(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Index (Standard_Integer) –
  • Tab (TColStd_Array1OfReal &) –
  • U1 (float &) –
  • U2 (float &) –
Return type:

void

static GetType(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:GeomAbs_CurveType
static Hyperbola(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Hypr2d
static Intervals(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Tab (TColStd_Array1OfReal &) –
Return type:

void

static LastParameter(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:float
static Line(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Lin2d
static NbIntervals(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:int
static NbSamples(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • C
  • U0 (float) –
  • U1 (float) –
Return type:

int

Return type:

int

static Parabola(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Parab2d
static Value(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • X (float) –
Return type:

gp_Pnt2d

thisown

The membership flag

OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_Circle(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Circ2d
OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_D0(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • U (float) –
  • P (gp_Pnt2d) –
Return type:

void

OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_D1(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • T (gp_Vec2d) –
Return type:

void

OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_D2(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • T (gp_Vec2d) –
  • N (gp_Vec2d) –
Return type:

void

OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_D3(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • T (gp_Vec2d) –
  • N (gp_Vec2d) –
  • V (gp_Vec2d) –
Return type:

void

OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_DN(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • U (float) –
  • N (Standard_Integer) –
Return type:

gp_Vec2d

OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_Degree(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:int
OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_Ellipse(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Elips2d
OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_EpsX(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • C
  • Eps_XYZ (float) –
Return type:

float

Return type:

float

OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_FirstParameter(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:float
OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_GetInterval(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Index (Standard_Integer) –
  • Tab (TColStd_Array1OfReal &) –
  • U1 (float &) –
  • U2 (float &) –
Return type:

void

OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_GetType(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:GeomAbs_CurveType
OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_Hyperbola(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Hypr2d
OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_Intervals(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Tab (TColStd_Array1OfReal &) –
Return type:

void

OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_LastParameter(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:float
OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_Line(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Lin2d
OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_NbIntervals(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:int
OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_NbSamples(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • C
  • U0 (float) –
  • U1 (float) –
Return type:

int

Return type:

int

OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_Parabola(*args)
Parameters:C (Adaptor2d_Curve2d &) –
Return type:gp_Parab2d
OCC.Geom2dInt.Geom2dInt_Geom2dCurveTool_Value(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • X (float) –
Return type:

gp_Pnt2d

class OCC.Geom2dInt.Geom2dInt_IntConicCurveOfGInter(*args)

Bases: OCC.IntRes2d.IntRes2d_Intersection

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 OCC.Geom2dInt.Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter(*args)

Bases: object

Derivative()
Parameters:
  • Param (float) –
  • D (float &) –
Return type:

bool

Value()
Parameters:
  • Param (float) –
  • F (float &) –
Return type:

bool

Values()
Parameters:
  • Param (float) –
  • F (float &) –
  • D (float &) –
Return type:

bool

thisown

The membership flag

class OCC.Geom2dInt.Geom2dInt_PCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(*args)

Bases: object

Derivative()
Parameters:
  • U (float) –
  • DF (float &) –
Return type:

bool

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

None

Value()
Parameters:
  • U (float) –
  • F (float &) –
Return type:

bool

Values()
Parameters:
  • U (float) –
  • F (float &) –
  • DF (float &) –
Return type:

bool

thisown

The membership flag

class OCC.Geom2dInt.Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter

Bases: OCC.TCollection.TCollection_BaseSequence

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 (Standard_Integer) –
Return type:Extrema_POnCurv2d
Clear()
Return type:None
First()
Return type:Extrema_POnCurv2d
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Extrema_POnCurv2d &) –
  • Index
  • S (Geom2dInt_SeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • 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 (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

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

None

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

None

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

The membership flag

class OCC.Geom2dInt.Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter_GetHandle(Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter self) -> Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter

Value()
Return type:Extrema_POnCurv2d
thisown

The membership flag

class OCC.Geom2dInt.Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter(*args, **kwargs)

Bases: object

thisown

The membership flag

class OCC.Geom2dInt.Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter(*args)

Bases: object

Derivatives()
Parameters:
  • X (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

NbEquations()
Return type:int
NbVariables()
Return type:int
Value()
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

Values()
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

thisown

The membership flag

class OCC.Geom2dInt.Geom2dInt_TheIntConicCurveOfGInter(*args)

Bases: OCC.IntRes2d.IntRes2d_Intersection

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 OCC.Geom2dInt.Geom2dInt_TheIntPCurvePCurveOfGInter

Bases: OCC.IntRes2d.IntRes2d_Intersection

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 OCC.Geom2dInt.Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter(*args)

Bases: OCC.IntRes2d.IntRes2d_Intersection

And_Domaine_Objet1_Intersections()
Parameters:
  • TheImpTool (IntCurve_IConicTool &) –
  • TheParCurve (Adaptor2d_Curve2d &) –
  • TheImpCurveDomain (IntRes2d_Domain &) –
  • TheParCurveDomain (IntRes2d_Domain &) –
  • NbResultats (Standard_Integer &) –
  • 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 OCC.Geom2dInt.Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter(*args)

Bases: object

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

None

IsDone()
Return type:bool
IsMin()
Return type:bool
Perform()
Parameters:
  • P (gp_Pnt2d) –
  • U0 (float) –
Return type:

None

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

The membership flag

class OCC.Geom2dInt.Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter(*args)

Bases: OCC.Intf.Intf_Polygon2d

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

float

AutoIntersectionIsPossible()
Return type:bool
CalculRegion()
Parameters:
  • x (float) –
  • y (float) –
  • x1 (float) –
  • x2 (float) –
  • y1 (float) –
  • y2 (float) –
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 OCC.Geom2dInt.Geom2dInt_TheProjPCurOfGInter(*args, **kwargs)

Bases: object

static FindParameter(*args)
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

OCC.Geom2dInt.Geom2dInt_TheProjPCurOfGInter_FindParameter(*args)
Parameters:
  • C (Adaptor2d_Curve2d &) –
  • Pnt (gp_Pnt2d) –
  • Tol (float) –
  • C
  • Pnt
  • LowParameter (float) –
  • HighParameter (float) –
  • Tol
Return type:

float

Return type:

float

class OCC.Geom2dInt.Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.Geom2dInt.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()