OCC.Core.Geom2dInt module

Geom2dInt module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_geom2dint.html

class Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter(*args)

Bases: object

Parameters

C1

type C1

Adaptor2d_Curve2d

param C2

type C2

Adaptor2d_Curve2d

param Tol

type Tol

float

rtype

None

AnErrorOccurred()
Return type

bool

NbRoots()
Return type

int

Perform()
Parameters

Poly1

type Poly1

Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter

param Poly2

type Poly2

Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter

param NumSegOn1

type NumSegOn1

int

param NumSegOn2

type NumSegOn2

int

param ParamOnSeg1

type ParamOnSeg1

float

param ParamOnSeg2

type ParamOnSeg2

float

rtype

None:param Uo:

type Uo

float

param Vo

type Vo

float

param UInf

type UInf

float

param VInf

type VInf

float

param USup

type USup

float

param VSup

type VSup

float

rtype

None

Roots()
Parameters

U

type U

float

param V

type V

float

rtype

None

property thisown

The membership flag

class Geom2dInt_GInter(*args)

Bases: OCC.Core.IntRes2d.IntRes2d_Intersection

  • Empty constructor.
    rtype

    None* Self Intersection of a curve

    param C

    type C

    Adaptor2d_Curve2d

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Self Intersection of a curve with a domain.

    param C

    type C

    Adaptor2d_Curve2d

    param D

    type D

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between 2 curves.

    param C1

    type C1

    Adaptor2d_Curve2d

    param C2

    type C2

    Adaptor2d_Curve2d

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between 2 curves.

    param C1

    type C1

    Adaptor2d_Curve2d

    param D1

    type D1

    IntRes2d_Domain

    param C2

    type C2

    Adaptor2d_Curve2d

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between 2 curves.

    param C1

    type C1

    Adaptor2d_Curve2d

    param C2

    type C2

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between 2 curves.

    param C1

    type C1

    Adaptor2d_Curve2d

    param D1

    type D1

    IntRes2d_Domain

    param C2

    type C2

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None

ComputeDomain()
  • Create a domain from a curve
    param C1

    type C1

    Adaptor2d_Curve2d

    param TolDomain

    type TolDomain

    float

    rtype

    IntRes2d_Domain

GetMinNbSamples()
Return type

int

Perform()
  • Intersection between 2 curves.
    param C1

    type C1

    Adaptor2d_Curve2d

    param D1

    type D1

    IntRes2d_Domain

    param C2

    type C2

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between 2 curves.

    param C1

    type C1

    Adaptor2d_Curve2d

    param C2

    type C2

    Adaptor2d_Curve2d

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between 2 curves.

    param C1

    type C1

    Adaptor2d_Curve2d

    param D1

    type D1

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between 2 curves.

    param C1

    type C1

    Adaptor2d_Curve2d

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between 2 curves.

    param C1

    type C1

    Adaptor2d_Curve2d

    param D1

    type D1

    IntRes2d_Domain

    param C2

    type C2

    Adaptor2d_Curve2d

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between 2 curves.

    param C1

    type C1

    Adaptor2d_Curve2d

    param C2

    type C2

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None

SetMinNbSamples()
  • Set / get minimum number of points in polygon intersection.
    param theMinNbSamples

    type theMinNbSamples

    int

    rtype

    None

property 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.
    param C

    type C

    Adaptor2d_Curve2d

    rtype

    gp_Circ2d

static D0()
Parameters

C

type C

Adaptor2d_Curve2d

param U

type U

float

param P

type P

gp_Pnt2d

rtype

None

static D1()
Parameters

C

type C

Adaptor2d_Curve2d

param U

type U

float

param P

type P

gp_Pnt2d

param T

type T

gp_Vec2d

rtype

None

static D2()
Parameters

C

type C

Adaptor2d_Curve2d

param U

type U

float

param P

type P

gp_Pnt2d

param T

type T

gp_Vec2d

param N

type N

gp_Vec2d

rtype

None

static D3()
Parameters

C

type C

Adaptor2d_Curve2d

param U

type U

float

param P

type P

gp_Pnt2d

param T

type T

gp_Vec2d

param N

type N

gp_Vec2d

param V

type V

gp_Vec2d

rtype

None

static DN()
Parameters

C

type C

Adaptor2d_Curve2d

param U

type U

float

param N

type N

int

rtype

gp_Vec2d

static Degree()
Parameters

C

type C

Adaptor2d_Curve2d

rtype

int

static Ellipse()
  • Returns the Elips2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Ellipse.
    param C

    type C

    Adaptor2d_Curve2d

    rtype

    gp_Elips2d

static EpsX()
Parameters

C

type C

Adaptor2d_Curve2d

rtype

float:param C:

type C

Adaptor2d_Curve2d

param Eps_XYZ

type Eps_XYZ

float

rtype

float

static FirstParameter()
Parameters

C

type C

Adaptor2d_Curve2d

rtype

float

static GetInterval()
  • output the bounds of interval of index <Index> used if Type == Composite.
    param C

    type C

    Adaptor2d_Curve2d

    param Index

    type Index

    int

    param Tab

    type Tab

    TColStd_Array1OfReal

    param U1

    type U1

    float

    param U2

    type U2

    float

    rtype

    None

static GetType()
Parameters

C

type C

Adaptor2d_Curve2d

rtype

GeomAbs_CurveType

static Hyperbola()
  • Returns the Hypr2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Hyperbola.
    param C

    type C

    Adaptor2d_Curve2d

    rtype

    gp_Hypr2d

static Intervals()
  • compute Tab.
    param C

    type C

    Adaptor2d_Curve2d

    param Tab

    type Tab

    TColStd_Array1OfReal

    rtype

    None

static LastParameter()
Parameters

C

type C

Adaptor2d_Curve2d

rtype

float

static Line()
  • Returns the Lin2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Line.
    param C

    type C

    Adaptor2d_Curve2d

    rtype

    gp_Lin2d

static NbIntervals()
  • output the number of interval of continuity C2 of the curve
    param C

    type C

    Adaptor2d_Curve2d

    rtype

    int

static NbSamples()
Parameters

C

type C

Adaptor2d_Curve2d

rtype

int:param C:

type C

Adaptor2d_Curve2d

param U0

type U0

float

param U1

type U1

float

rtype

int

static Parabola()
  • Returns the Parab2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Parabola.
    param C

    type C

    Adaptor2d_Curve2d

    rtype

    gp_Parab2d

static Value()
Parameters

C

type C

Adaptor2d_Curve2d

param X

type X

float

rtype

gp_Pnt2d

property thisown

The membership flag

class Geom2dInt_IntConicCurveOfGInter(*args)

Bases: OCC.Core.IntRes2d.IntRes2d_Intersection

  • Empty constructor.
    rtype

    None* Intersection between a line and a parametric curve.

    param L

    type L

    gp_Lin2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between a line and a parametric curve.

    param C

    type C

    gp_Circ2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between an ellipse and a parametric curve.

    param E

    type E

    gp_Elips2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between a parabola and a parametric curve.

    param Prb

    type Prb

    gp_Parab2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between the main branch of an hyperbola and a parametric curve.

    param H

    type H

    gp_Hypr2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None

Perform()
  • Intersection between a line and a parametric curve.
    param L

    type L

    gp_Lin2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between a line and a parametric curve.

    param C

    type C

    gp_Circ2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between an ellipse and a parametric curve.

    param E

    type E

    gp_Elips2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between a parabola and a parametric curve.

    param Prb

    type Prb

    gp_Parab2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between the main branch of an hyperbola and a parametric curve.

    param H

    type H

    gp_Hypr2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None

property thisown

The membership flag

class Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter(*args)

Bases: OCC.Core.math.math_FunctionWithDerivative

  • Constructor of the class.
    param IT

    type IT

    IntCurve_IConicTool

    param PC

    type PC

    Adaptor2d_Curve2d

    rtype

    None

property thisown

The membership flag

class Geom2dInt_PCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(*args)

Bases: OCC.Core.math.math_FunctionWithDerivative

Return type

None:param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :rtype: None

Initialize()
  • sets the field mycurve of the function.
    param C

    type C

    Adaptor2d_Curve2d

    rtype

    None

IsMin()
  • Shows if the Nth distance is a minimum.
    param N

    type N

    int

    rtype

    bool

NbExt()
  • Return the nunber of found extrema.
    rtype

    int

Point()
  • Returns the Nth extremum.
    param N

    type N

    int

    rtype

    Extrema_POnCurv2d

SearchOfTolerance()
  • Computes a Tol value. If 1st derivative of curve |D1|<Tol, it is considered D1=0.
    rtype

    float

SetPoint()
  • sets the field P of the function.
    param P

    type P

    gp_Pnt2d

    rtype

    None

SquareDistance()
  • Returns the Nth distance.
    param N

    type N

    int

    rtype

    float

SubIntervalInitialize()
  • Determines boundaries of subinterval for find of root.
    param theUfirst

    type theUfirst

    float

    param theUlast

    type theUlast

    float

    rtype

    None

property thisown

The membership flag

class Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter

Bases: object

property thisown

The membership flag

class Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter(*args)

Bases: OCC.Core.math.math_FunctionSetWithDerivatives

Parameters

curve1

type curve1

Adaptor2d_Curve2d

param curve2

type curve2

Adaptor2d_Curve2d

rtype

None

property thisown

The membership flag

class Geom2dInt_TheIntConicCurveOfGInter(*args)

Bases: OCC.Core.IntRes2d.IntRes2d_Intersection

  • Empty constructor.
    rtype

    None* Intersection between a line and a parametric curve.

    param L

    type L

    gp_Lin2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between a line and a parametric curve.

    param C

    type C

    gp_Circ2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between an ellipse and a parametric curve.

    param E

    type E

    gp_Elips2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between a parabola and a parametric curve.

    param Prb

    type Prb

    gp_Parab2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between the main branch of an hyperbola and a parametric curve.

    param H

    type H

    gp_Hypr2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None

Perform()
  • Intersection between a line and a parametric curve.
    param L

    type L

    gp_Lin2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between a line and a parametric curve.

    param C

    type C

    gp_Circ2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between an ellipse and a parametric curve.

    param E

    type E

    gp_Elips2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between a parabola and a parametric curve.

    param Prb

    type Prb

    gp_Parab2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None* Intersection between the main branch of an hyperbola and a parametric curve.

    param H

    type H

    gp_Hypr2d

    param D1

    type D1

    IntRes2d_Domain

    param PCurve

    type PCurve

    Adaptor2d_Curve2d

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None

property thisown

The membership flag

class Geom2dInt_TheIntPCurvePCurveOfGInter(*args)

Bases: OCC.Core.IntRes2d.IntRes2d_Intersection

Return type

None

GetMinNbSamples()
Return type

int

Perform()
Parameters

Curve1

type Curve1

Adaptor2d_Curve2d

param Domain1

type Domain1

IntRes2d_Domain

param Curve2

type Curve2

Adaptor2d_Curve2d

param Domain2

type Domain2

IntRes2d_Domain

param TolConf

type TolConf

float

param Tol

type Tol

float

rtype

None:param Curve1:

type Curve1

Adaptor2d_Curve2d

param Domain1

type Domain1

IntRes2d_Domain

param TolConf

type TolConf

float

param Tol

type Tol

float

rtype

None

SetMinNbSamples()
  • Set / get minimum number of points in polygon for intersection.
    param theMinNbSamples

    type theMinNbSamples

    int

    rtype

    None

property thisown

The membership flag

class Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter(*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

    Adaptor2d_Curve2d

    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

Adaptor2d_Curve2d

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

Adaptor2d_Curve2d

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

Adaptor2d_Curve2d

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

    Adaptor2d_Curve2d

    param Dom2

    type Dom2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    rtype

    None

property thisown

The membership flag

class Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter(*args)

Bases: object

Return type

None* Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs a zero near the close point. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param U0: :type U0: float :param TolU: :type TolU: float :rtype: None* Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs a zero near the close point. Zeros are searched between Umin et Usup. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param U0: :type U0: float :param Umin: :type Umin: float :param Usup: :type Usup: float :param TolU: :type TolU: float :rtype: None

Initialize()
  • sets the fields of the algorithm.
    param C

    type C

    Adaptor2d_Curve2d

    param Umin

    type Umin

    float

    param Usup

    type Usup

    float

    param TolU

    type TolU

    float

    rtype

    None

IsDone()
  • Returns True if the distance is found.
    rtype

    bool

IsMin()
  • Returns True if the extremum distance is a minimum.
    rtype

    bool

Perform()
  • the algorithm is done with the point P. An exception is raised if the fields have not been initialized.
    param P

    type P

    gp_Pnt2d

    param U0

    type U0

    float

    rtype

    None

Point()
  • Returns the point of the extremum distance.
    rtype

    Extrema_POnCurv2d

SquareDistance()
  • Returns the value of the extremum square distance.
    rtype

    float

property thisown

The membership flag

class Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter(*args)

Bases: OCC.Core.Intf.Intf_Polygon2d

  • Compute a polygon on the domain of the curve.
    param Curve

    type Curve

    Adaptor2d_Curve2d

    param NbPnt

    type NbPnt

    int

    param Domain

    type Domain

    IntRes2d_Domain

    param Tol

    type Tol

    float

    rtype

    None

ApproxParamOnCurve()
  • Give an approximation of the parameter on the curve according to the discretization of the Curve.
    param Index

    type Index

    int

    param ParamOnLine

    type ParamOnLine

    float

    rtype

    float

AutoIntersectionIsPossible()
Return type

bool

CalculRegion()
Parameters

x

type x

float

param y

type y

float

param x1

type x1

float

param x2

type x2

float

param y1

type y1

float

param y2

type y2

float

rtype

int

Closed()
Parameters

clos

type clos

bool

rtype

None* Returns True if the polyline is closed.

rtype

bool

ComputeWithBox()
  • The current polygon is modified if most of the points of the polygon are are outside the box <OtherBox>. In this situation, bounds are computed to build a polygon inside or near the OtherBox.
    param Curve

    type Curve

    Adaptor2d_Curve2d

    param OtherBox

    type OtherBox

    Bnd_Box2d

    rtype

    None

Dump()
Return type

None

InfParameter()
  • Returns the parameter (On the curve) of the first point of the Polygon
    rtype

    float

SetDeflectionOverEstimation()
Parameters

x

type x

float

rtype

None

SupParameter()
  • Returns the parameter (On the curve) of the last point of the Polygon
    rtype

    float

property thisown

The membership flag

class Geom2dInt_TheProjPCurOfGInter

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

    Adaptor2d_Curve2d

    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

    Adaptor2d_Curve2d

    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

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()