OCC.IntAna module

class OCC.IntAna.Handle_IntAna_ListNodeOfListOfCurve(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.IntAna.IntAna_Curve

Bases: object

D1u()
  • Returns the point and the first derivative at parameter Theta on the curve.
Parameters:
  • Theta (float) –
  • P (gp_Pnt) –
  • V (gp_Vec) –
Return type:

bool

Domain()
  • Returns the paramatric domain of the curve.
Parameters:
  • Theta1 (float &) –
  • Theta2 (float &) –
Return type:

None

FindParameter()
  • Tries to find the parameter of the point P on the curve. If the method returns False, the ‘projection’ is impossible, and the value of Para is not significant. If the method returns True, Para is the parameter of the nearest intersection between the curve and the iso-theta containing P.
Parameters:
  • P (gp_Pnt) –
  • Para (float &) –
Return type:

bool

InternalUVValue()
  • Protected function.
Parameters:
  • Param (float) –
  • U (float &) –
  • V (float &) –
  • A (float &) –
  • B (float &) –
  • C (float &) –
  • Co (float &) –
  • Si (float &) –
  • Di (float &) –
Return type:

None

IsConstant()
  • Returns True if the function is constant.
Return type:bool
IsFirstOpen()
  • Returns True if the domain is open at the beginning.
Return type:bool
IsLastOpen()
  • Returns True if the domain is open at the end.
Return type:bool
IsOpen()
  • Returns True if the curve is not infinite at the last parameter or at the first parameter of the domain.
Return type:bool
SetConeQuadValues()
  • Sets the parameters used to compute Points and Derivative on the curve.
Parameters:
  • Cone (gp_Cone) –
  • Qxx (float) –
  • Qyy (float) –
  • Qzz (float) –
  • Qxy (float) –
  • Qxz (float) –
  • Qyz (float) –
  • Qx (float) –
  • Qy (float) –
  • Qz (float) –
  • Q1 (float) –
  • Tol (float) –
  • DomInf (float) –
  • DomSup (float) –
  • TwoZForATheta (bool) –
  • ZIsPositive (bool) –
Return type:

None

SetCylinderQuadValues()
  • Sets the parameters used to compute Points and Derivative on the curve.
Parameters:
  • Cylinder (gp_Cylinder) –
  • Qxx (float) –
  • Qyy (float) –
  • Qzz (float) –
  • Qxy (float) –
  • Qxz (float) –
  • Qyz (float) –
  • Qx (float) –
  • Qy (float) –
  • Qz (float) –
  • Q1 (float) –
  • Tol (float) –
  • DomInf (float) –
  • DomSup (float) –
  • TwoZForATheta (bool) –
  • ZIsPositive (bool) –
Return type:

None

SetDomain()
Parameters:
  • Theta1 (float) –
  • Theta2 (float) –
Return type:

None

SetIsFirstOpen()
  • If flag is True, the Curve is not defined at the first parameter of its domain.
Parameters:Flag (bool) –
Return type:None
SetIsLastOpen()
  • If flag is True, the Curve is not defined at the first parameter of its domain.
Parameters:Flag (bool) –
Return type:None
Value()
  • Returns the point at parameter Theta on the curve.
Parameters:Theta (float) –
Return type:gp_Pnt
thisown

The membership flag

class OCC.IntAna.IntAna_Int3Pln(*args)

Bases: object

IsDone()
  • Returns True if the computation was successful.
Return type:bool
IsEmpty()
  • Returns True if there is no intersection POINT. If 2 planes are identical or parallel, IsEmpty will return True.
Return type:bool
Perform()
  • Determination of the intersection point between 3 planes.
Parameters:
  • P1 (gp_Pln) –
  • P2 (gp_Pln) –
  • P3 (gp_Pln) –
Return type:

None

Value()
  • Returns the intersection point.
Return type:gp_Pnt
thisown

The membership flag

class OCC.IntAna.IntAna_IntConicQuad(*args)

Bases: object

IsDone()
  • Returns True if the creation completed.
Return type:bool
IsInQuadric()
  • Returns True if the conic is in the quadric.
Return type:bool
IsParallel()
  • Returns True if the line is in a quadric which is parallel to the quadric.
Return type:bool
NbPoints()
  • Returns the number of intersection point.
Return type:int
ParamOnConic()
  • Returns the parameter on the line of the intersection point of range N.
Parameters:N (Standard_Integer) –
Return type:float
Perform()
  • Intersects a line and a quadric.
Parameters:
  • L (gp_Lin) –
  • Q (IntAna_Quadric &) –
Return type:

None

  • Intersects a circle and a quadric.
Parameters:
  • C (gp_Circ) –
  • Q (IntAna_Quadric &) –
Return type:

None

  • Intersects an ellipse and a quadric.
Parameters:
  • E (gp_Elips) –
  • Q (IntAna_Quadric &) –
Return type:

None

  • Intersects a parabola and a quadric.
Parameters:
  • P (gp_Parab) –
  • Q (IntAna_Quadric &) –
Return type:

None

  • Intersects an hyperbola and a quadric.
Parameters:
  • H (gp_Hypr) –
  • Q (IntAna_Quadric &) –
Return type:

None

  • Intersects a line and a plane. Tolang is used to determine if the angle between two vectors is null. Tol is used to check the distance between line and plane on the distance <Len> from the origin of the line.
Parameters:
  • L (gp_Lin) –
  • P (gp_Pln) –
  • Tolang (float) –
  • Tol (float) – default value is 0
  • Len (float) – default value is 0
Return type:

None

  • Intersects a line and a plane. Tolang is used to determine if the angle between two vectors is null. Tol is used to check the distance between line and plane on the distance <Len> from the origin of the line.
Parameters:
  • L (gp_Lin) –
  • P (gp_Pln) –
  • Tolang (float) –
  • Tol (float) – default value is 0
  • Len (float) – default value is 0
Return type:

None

  • Intersects a line and a plane. Tolang is used to determine if the angle between two vectors is null. Tol is used to check the distance between line and plane on the distance <Len> from the origin of the line.
Parameters:
  • L (gp_Lin) –
  • P (gp_Pln) –
  • Tolang (float) –
  • Tol (float) – default value is 0
  • Len (float) – default value is 0
Return type:

None

  • Intersects a circle and a plane. Tolang is used to determine if the angle between two vectors is null. Tol is used to determine if a distance is null.
Parameters:
  • C (gp_Circ) –
  • P (gp_Pln) –
  • Tolang (float) –
  • Tol (float) –
Return type:

None

  • Intersects an ellipse and a plane. Tolang is used to determine if the angle between two vectors is null. Tol is used to determine if a distance is null.
Parameters:
  • E (gp_Elips) –
  • P (gp_Pln) –
  • Tolang (float) –
  • Tol (float) –
Return type:

None

  • Intersects a parabola and a plane. Tolang is used to determine if the angle between two vectors is null.
Parameters:
  • Pb (gp_Parab) –
  • P (gp_Pln) –
  • Tolang (float) –
Return type:

None

  • Intersects an hyperbola and a plane. Tolang is used to determine if the angle between two vectors is null.
Parameters:
  • H (gp_Hypr) –
  • P (gp_Pln) –
  • Tolang (float) –
Return type:

None

Point()
  • Returns the point of range N.
Parameters:N (Standard_Integer) –
Return type:gp_Pnt
thisown

The membership flag

class OCC.IntAna.IntAna_IntLinTorus(*args)

Bases: object

IsDone()
  • Returns True if the computation was successful.
Return type:bool
NbPoints()
  • Returns the number of intersection points.
Return type:int
ParamOnLine()
  • Returns the parameter on the line of the intersection point of range Index.
Parameters:Index (Standard_Integer) –
Return type:float
ParamOnTorus()
  • Returns the parameters on the torus of the intersection point of range Index.
Parameters:
  • Index (Standard_Integer) –
  • FI (float &) –
  • THETA (float &) –
Return type:

None

Perform()
  • Intersects a line and a torus.
Parameters:
  • L (gp_Lin) –
  • T (gp_Torus) –
Return type:

None

Value()
  • Returns the intersection point of range Index.
Parameters:Index (Standard_Integer) –
Return type:gp_Pnt
thisown

The membership flag

class OCC.IntAna.IntAna_IntQuadQuad(*args)

Bases: object

Curve()
  • Returns the curve of range N.
Parameters:N (Standard_Integer) –
Return type:IntAna_Curve
HasNextCurve()
  • Returns True if the Curve I shares its last bound with another curve.
Parameters:I (Standard_Integer) –
Return type:bool
HasPreviousCurve()
  • Returns True if the Curve I shares its first bound with another curve.
Parameters:I (Standard_Integer) –
Return type:bool
IdenticalElements()
  • Returns True if the cylinder, the cone or the sphere is identical to the quadric.
Return type:bool
IsDone()
  • Returns True if the computation was successful.
Return type:bool
NbCurve()
  • Returns the number of curves solution.
Return type:int
NbPnt()
  • Returns the number of contact point.
Return type:int
NextCurve()
  • If HasNextCurve(I) returns True, this function returns the Index J of the curve which has a common bound with the curve I. If Opposite == True , then the last parameter of the curve I, and the last parameter of the curve J give the same point. Else the last parameter of the curve I and the first parameter of the curve J are the same point.
Parameters:
  • I (Standard_Integer) –
  • Opposite (bool) –
Return type:

int

Parameters()
  • Returns the paramaters on the ‘explicit quadric’ (i.e the cylinder or the cone, the first argument given to the constructor) of the point of range N.
Parameters:
  • N (Standard_Integer) –
  • U1 (float &) –
  • U2 (float &) –
Return type:

None

Perform()
  • Intersects a cylinder and a quadric . Tol est a definir plus precisemment.
Parameters:
  • C (gp_Cylinder) –
  • Q (IntAna_Quadric &) –
  • Tol (float) –
Return type:

None

  • Intersects a cone and a quadric. Tol est a definir plus precisemment.
Parameters:
  • C (gp_Cone) –
  • Q (IntAna_Quadric &) –
  • Tol (float) –
Return type:

None

Point()
  • Returns the point of range N.
Parameters:N (Standard_Integer) –
Return type:gp_Pnt
PreviousCurve()
  • if HasPreviousCurve(I) returns True, this function returns the Index J of the curve which has a common bound with the curve I. If Opposite == True , then the first parameter of the curve I, and the first parameter of the curve J give the same point. Else the first parameter of the curve I and the last parameter of the curve J are the same point.
Parameters:
  • I (Standard_Integer) –
  • Opposite (bool) –
Return type:

int

thisown

The membership flag

class OCC.IntAna.IntAna_ListIteratorOfListOfCurve(*args)

Bases: object

Initialize()
Parameters:L (IntAna_ListOfCurve &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:IntAna_Curve
thisown

The membership flag

class OCC.IntAna.IntAna_ListNodeOfListOfCurve(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

IntAna_ListNodeOfListOfCurve_GetHandle(IntAna_ListNodeOfListOfCurve self) -> Handle_IntAna_ListNodeOfListOfCurve

Value()
Return type:IntAna_Curve
thisown

The membership flag

class OCC.IntAna.IntAna_ListOfCurve

Bases: object

Append()
Parameters:
  • I (IntAna_Curve &) –
  • I
  • theIt (IntAna_ListIteratorOfListOfCurve &) –
  • Other (IntAna_ListOfCurve &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (IntAna_ListOfCurve &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:IntAna_Curve
InsertAfter()
Parameters:
  • I (IntAna_Curve &) –
  • It (IntAna_ListIteratorOfListOfCurve &) –
  • Other (IntAna_ListOfCurve &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (IntAna_Curve &) –
  • It (IntAna_ListIteratorOfListOfCurve &) –
  • Other (IntAna_ListOfCurve &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:IntAna_Curve
Prepend()
Parameters:
  • I (IntAna_Curve &) –
  • I
  • theIt (IntAna_ListIteratorOfListOfCurve &) –
  • Other (IntAna_ListOfCurve &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (IntAna_ListIteratorOfListOfCurve &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (IntAna_ListOfCurve &) –
Return type:None
thisown

The membership flag

class OCC.IntAna.IntAna_QuadQuadGeo(*args)

Bases: object

Circle()
  • Returns the circle solution of range Num.
Parameters:Num (Standard_Integer) –
Return type:gp_Circ
Ellipse()
  • Returns the ellipse solution of range Num.
Parameters:Num (Standard_Integer) –
Return type:gp_Elips
HasCommonGen()
Return type:bool
Hyperbola()
  • Returns the hyperbola solution of range Num.
Parameters:Num (Standard_Integer) –
Return type:gp_Hypr
IsDone()
  • Returns Standard_True if the computation was successful.
Return type:bool
Line()
  • Returns the line solution of range Num.
Parameters:Num (Standard_Integer) –
Return type:gp_Lin
NbSolutions()
  • Returns the number of interesections. The possible intersections are : - 1 point - 1 or 2 line(s) - 1 Point and 1 Line - 1 circle - 1 ellipse - 1 parabola - 1 or 2 hyperbola(s).
Return type:int
PChar()
Return type:gp_Pnt
Parabola()
  • Returns the parabola solution of range Num.
Parameters:Num (Standard_Integer) –
Return type:gp_Parab
Perform()
  • Intersects two planes. TolAng is the angular tolerance used to determine if the planes are parallel. Tol is the tolerance used to determine if the planes are identical (only when they are parallel).
Parameters:
  • P1 (gp_Pln) –
  • P2 (gp_Pln) –
  • TolAng (float) –
  • Tol (float) –
Return type:

None

  • Intersects a plane and a cylinder. TolAng is the angular tolerance used to determine if the axis of the cylinder is parallel to the plane. Tol is the tolerance used to determine if the result is a circle or an ellipse. If the maximum distance between the ellipse solution and the circle centered at the ellipse center is less than Tol, the result will be the circle. H is the height of the cylinder <Cyl>. It is used to check whether the plane and cylinder are parallel.
Parameters:
  • P (gp_Pln) –
  • C (gp_Cylinder) –
  • Tolang (float) –
  • Tol (float) –
  • H (float) – default value is 0
Return type:

None

  • Intersects a plane and a cylinder. TolAng is the angular tolerance used to determine if the axis of the cylinder is parallel to the plane. Tol is the tolerance used to determine if the result is a circle or an ellipse. If the maximum distance between the ellipse solution and the circle centered at the ellipse center is less than Tol, the result will be the circle. H is the height of the cylinder <Cyl>. It is used to check whether the plane and cylinder are parallel.
Parameters:
  • P (gp_Pln) –
  • C (gp_Cylinder) –
  • Tolang (float) –
  • Tol (float) –
  • H (float) – default value is 0
Return type:

None

  • Intersects a plane and a sphere.
Parameters:
  • P (gp_Pln) –
  • S (gp_Sphere) –
Return type:

None

  • Intersects a plane and a cone. TolAng is the angular tolerance used to determine if the axis of the cone is parallel or perpendicular to the plane, and if the generating line of the cone is parallel to the plane. Tol is the tolerance used to determine if the apex of the cone is in the plane.
Parameters:
  • P (gp_Pln) –
  • C (gp_Cone) –
  • Tolang (float) –
  • Tol (float) –
Return type:

None

  • Intersects two cylinders
Parameters:
  • Cyl1 (gp_Cylinder) –
  • Cyl2 (gp_Cylinder) –
  • Tol (float) –
Return type:

None

  • Intersects a cylinder and a sphere.
Parameters:
  • Cyl (gp_Cylinder) –
  • Sph (gp_Sphere) –
  • Tol (float) –
Return type:

None

  • Intersects a cylinder and a cone.
Parameters:
  • Cyl (gp_Cylinder) –
  • Con (gp_Cone) –
  • Tol (float) –
Return type:

None

  • Intersects a two spheres.
Parameters:
  • Sph1 (gp_Sphere) –
  • Sph2 (gp_Sphere) –
  • Tol (float) –
Return type:

None

  • Intersects a sphere and a cone.
Parameters:
  • Sph (gp_Sphere) –
  • Con (gp_Cone) –
  • Tol (float) –
Return type:

None

  • Intersects two cones.
Parameters:
  • Con1 (gp_Cone) –
  • Con2 (gp_Cone) –
  • Tol (float) –
Return type:

None

  • Intersects plane and torus.
Parameters:
  • Pln (gp_Pln) –
  • Tor (gp_Torus) –
  • Tol (float) –
Return type:

None

  • Intersects cylinder and torus.
Parameters:
  • Cyl (gp_Cylinder) –
  • Tor (gp_Torus) –
  • Tol (float) –
Return type:

None

  • Intersects cone and torus.
Parameters:
  • Con (gp_Cone) –
  • Tor (gp_Torus) –
  • Tol (float) –
Return type:

None

  • Intersects sphere and torus.
Parameters:
  • Sph (gp_Sphere) –
  • Tor (gp_Torus) –
  • Tol (float) –
Return type:

None

  • Intersects two toruses.
Parameters:
  • Tor1 (gp_Torus) –
  • Tor2 (gp_Torus) –
  • Tol (float) –
Return type:

None

Point()
  • Returns the point solution of range Num.
Parameters:Num (Standard_Integer) –
Return type:gp_Pnt
TypeInter()
  • Returns the type of intersection.
Return type:IntAna_ResultType
thisown

The membership flag

class OCC.IntAna.IntAna_Quadric(*args)

Bases: object

Coefficients()
  • Returns the coefficients of the polynomial equation which define the quadric: xCXX x**2 + xCYY y**2 + xCZZ z**2 + 2 ( xCXY x y + xCXZ x z + xCYZ y z ) + 2 ( xCX x + xCY y + xCZ z ) + xCCte
Parameters:
  • xCXX (float &) –
  • xCYY (float &) –
  • xCZZ (float &) –
  • xCXY (float &) –
  • xCXZ (float &) –
  • xCYZ (float &) –
  • xCX (float &) –
  • xCY (float &) –
  • xCZ (float &) –
  • xCCte (float &) –
Return type:

None

NewCoefficients()
  • Returns the coefficients of the polynomial equation ( written in the natural coordinates system ) in the local coordinates system defined by Axis
Parameters:
  • xCXX (float &) –
  • xCYY (float &) –
  • xCZZ (float &) –
  • xCXY (float &) –
  • xCXZ (float &) –
  • xCYZ (float &) –
  • xCX (float &) –
  • xCY (float &) –
  • xCZ (float &) –
  • xCCte (float &) –
  • Axis (gp_Ax3) –
Return type:

None

SetQuadric()
  • Initializes the quadric with a Pln
Parameters:P (gp_Pln) –
Return type:None
  • Initialize the quadric with a Sphere
Parameters:Sph (gp_Sphere) –
Return type:None
  • Initializes the quadric with a Cone
Parameters:Con (gp_Cone) –
Return type:None
  • Initializes the quadric with a Cylinder
Parameters:Cyl (gp_Cylinder) –
Return type:None
thisown

The membership flag

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

Bases: object

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

The membership flag

value()