OCC.Core.IntAna2d module

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

class IntAna2d_AnaIntersection(*args)

Bases: object

  • Empty constructor. IsDone returns False.
    rtype

    None* Intersection between two lines.

    param L1

    type L1

    gp_Lin2d

    param L2

    type L2

    gp_Lin2d

    rtype

    None* Intersection between two circles.

    param C1

    type C1

    gp_Circ2d

    param C2

    type C2

    gp_Circ2d

    rtype

    None* Intersection between a line and a circle.

    param L

    type L

    gp_Lin2d

    param C

    type C

    gp_Circ2d

    rtype

    None* Intersection between a line and a conic.

    param L

    type L

    gp_Lin2d

    param C

    type C

    IntAna2d_Conic

    rtype

    None* Intersection between a circle and another conic.

    param C

    type C

    gp_Circ2d

    param Co

    type Co

    IntAna2d_Conic

    rtype

    None* Intersection between an ellipse and another conic.

    param E

    type E

    gp_Elips2d

    param C

    type C

    IntAna2d_Conic

    rtype

    None* Intersection between a parabola and another conic.

    param P

    type P

    gp_Parab2d

    param C

    type C

    IntAna2d_Conic

    rtype

    None* Intersection between an hyperbola and another conic.

    param H

    type H

    gp_Hypr2d

    param C

    type C

    IntAna2d_Conic

    rtype

    None

IdenticalElements()
  • For the intersection between an element of gp and a conic known by an implicit equation, the result will be True if the element of gp verifies the implicit equation. For the intersection between two Lin2d or two Circ2d, the result will be True if the elements are identical. The function returns False in all the other cases.
    rtype

    bool

IsDone()
  • Returns True if the computation was succesfull.
    rtype

    bool

IsEmpty()
  • Returns True when there is no intersection, i-e - no intersection point - the elements are not identical. The element may be parallel in this case.
    rtype

    bool

NbPoints()
  • returns the number of IntPoint between the 2 curves.
    rtype

    int

ParallelElements()
  • For the intersection between two Lin2d or two Circ2d, the function returns True if the elements are parallel. The function returns False in all the other cases.
    rtype

    bool

Perform()
  • Intersection between two lines.
    param L1

    type L1

    gp_Lin2d

    param L2

    type L2

    gp_Lin2d

    rtype

    None* Intersection between two circles.

    param C1

    type C1

    gp_Circ2d

    param C2

    type C2

    gp_Circ2d

    rtype

    None* Intersection between a line and a circle.

    param L

    type L

    gp_Lin2d

    param C

    type C

    gp_Circ2d

    rtype

    None* Intersection between a line and a conic.

    param L

    type L

    gp_Lin2d

    param C

    type C

    IntAna2d_Conic

    rtype

    None* Intersection between a circle and another conic.

    param C

    type C

    gp_Circ2d

    param Co

    type Co

    IntAna2d_Conic

    rtype

    None* Intersection between an ellipse and another conic.

    param E

    type E

    gp_Elips2d

    param C

    type C

    IntAna2d_Conic

    rtype

    None* Intersection between a parabola and another conic.

    param P

    type P

    gp_Parab2d

    param C

    type C

    IntAna2d_Conic

    rtype

    None* Intersection between an hyperbola and another conic.

    param H

    type H

    gp_Hypr2d

    param C

    type C

    IntAna2d_Conic

    rtype

    None

Point()
  • returns the intersection point of range N; If (N<=0) or (N>NbPoints), an exception is raised.
    param N

    type N

    int

    rtype

    IntAna2d_IntPoint

property thisown

The membership flag

class IntAna2d_Conic(*args)

Bases: object

Parameters

C

type C

gp_Circ2d

rtype

None:param C:

type C

gp_Lin2d

rtype

None:param C:

type C

gp_Parab2d

rtype

None:param C:

type C

gp_Hypr2d

rtype

None:param C:

type C

gp_Elips2d

rtype

None

Coefficients()
  • returns the coefficients of the polynomial equation wich defines the conic: A.X**2 + B.Y**2 + 2.C.X*Y + 2.D.X + 2.E.Y + F = 0.
    param A

    type A

    float

    param B

    type B

    float

    param C

    type C

    float

    param D

    type D

    float

    param E

    type E

    float

    param F

    type F

    float

    rtype

    None

Grad()
  • returns the value of the gradient of F at the point X,Y.
    param X

    type X

    float

    param Y

    type Y

    float

    rtype

    gp_XY

NewCoefficients()
  • Returns the coefficients of the polynomial equation ( written in the natural coordinates system ) A x x + B y y + 2 C x y + 2 D x + 2 E y + F in the local coordinates system defined by Axis
    param A

    type A

    float

    param B

    type B

    float

    param C

    type C

    float

    param D

    type D

    float

    param E

    type E

    float

    param F

    type F

    float

    param Axis

    type Axis

    gp_Ax2d

    rtype

    None

ValAndGrad()
  • Returns the value of the function and its gradient at the point X,Y.
    param X

    type X

    float

    param Y

    type Y

    float

    param Val

    type Val

    float

    param Grd

    type Grd

    gp_XY

    rtype

    None

Value()
  • value of the function F at the point X,Y.
    param X

    type X

    float

    param Y

    type Y

    float

    rtype

    float

property thisown

The membership flag

class IntAna2d_IntPoint(*args)

Bases: object

  • Create an intersection point between 2 parametric 2d lines. X,Y are the coordinate of the point. U1 is the parameter on the first element, U2 the parameter on the second one.
    param X

    type X

    float

    param Y

    type Y

    float

    param U1

    type U1

    float

    param U2

    type U2

    float

    rtype

    None* Create an intersection point between a parametric 2d line, and a line given by an implicit equation (ImplicitCurve). X,Y are the coordinate of the point. U1 is the parameter on the parametric element. Empty constructor. It’s necessary to use one of the SetValue method after this one.

    param X

    type X

    float

    param Y

    type Y

    float

    param U1

    type U1

    float

    rtype

    None:rtype: None

ParamOnFirst()
  • Returns the parameter on the first element.
    rtype

    float

ParamOnSecond()
  • Returns the parameter on the second element. If the second element is an implicit curve, an exception is raised.
    rtype

    float

SecondIsImplicit()
  • Returns True if the second curve is implicit.
    rtype

    bool

SetValue()
  • Set the values for a ‘non-implicit’ point.
    param X

    type X

    float

    param Y

    type Y

    float

    param U1

    type U1

    float

    param U2

    type U2

    float

    rtype

    void* Set the values for an ‘implicit’ point.

    param X

    type X

    float

    param Y

    type Y

    float

    param U1

    type U1

    float

    rtype

    void

Value()
  • Returns the geometric point.
    rtype

    gp_Pnt2d

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()