OCC.IntAna module

class Handle_IntAna_ListNodeOfListOfCurve(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class IntAna_Curve(*args)

Bases: object

  • Empty Constructor
Return type:None
D1u()
  • Returns the point and the first derivative at parameter Theta on the curve.
Parameters:
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:
Return type:

None

SetCylinderQuadValues()
  • Sets the parameters used to compute Points and Derivative on the curve.
Parameters:
Return type:

None

SetDomain()
Parameters:
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 IntAna_Int3Pln(*args)

Bases: object

Return type:None
  • Determination of the intersection point between 3 planes.
Parameters:
Return type:

None

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:
Return type:

None

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

The membership flag

class IntAna_IntConicQuad(*args)

Bases: object

  • Empty constructor.
Return type:None
  • Creates the intersection between a line and a quadric.
Parameters:
  • L (gp_Lin) –
  • Q (IntAna_Quadric &) –
Return type:

None

  • Creates the intersection between a circle and a quadric.
Parameters:
  • C (gp_Circ) –
  • Q (IntAna_Quadric &) –
Return type:

None

  • Creates the intersection between an ellipse and a quadric.
Parameters:
  • E (gp_Elips) –
  • Q (IntAna_Quadric &) –
Return type:

None

  • Creates the intersection between a parabola and a quadric.
Parameters:
  • P (gp_Parab) –
  • Q (IntAna_Quadric &) –
Return type:

None

  • Creates the intersection between an hyperbola and a quadric.
Parameters:
  • H (gp_Hypr) –
  • Q (IntAna_Quadric &) –
Return type:

None

  • Intersection between 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:
Return type:

None

  • Intersection between 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:
Return type:

None

  • Intersection between 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:
Return type:

None

  • Intersection between a parabola and a plane. Tolang is used to determine if the angle between two vectors is null.
Parameters:
Return type:

None

  • Intersection between an hyperbola and a plane. Tolang is used to determine if the angle between two vectors is null.
Parameters:
Return type:

None

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 (int) –
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:
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:
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:
Return type:

None

  • Intersects a parabola and a plane. Tolang is used to determine if the angle between two vectors is null.
Parameters:
Return type:

None

  • Intersects an hyperbola and a plane. Tolang is used to determine if the angle between two vectors is null.
Parameters:
Return type:

None

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

The membership flag

class IntAna_IntLinTorus(*args)

Bases: object

Return type:None
  • Creates the intersection between a line and a torus.
Parameters:
Return type:

None

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 (int) –
Return type:float
ParamOnTorus()
  • Returns the parameters on the torus of the intersection point of range Index.
Parameters:
  • Index (int) –
  • FI (float &) –
  • THETA (float &) –
Return type:

None

Perform()
  • Intersects a line and a torus.
Parameters:
Return type:

None

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

The membership flag

class IntAna_IntQuadQuad(*args)

Bases: object

  • Empty Constructor
Return type:None
  • Creates the intersection between a cylinder and a quadric . Tol est a definir plus precisemment.
Parameters:
Return type:

None

  • Creates the intersection between a cone and a quadric. Tol est a definir plus precisemment.
Parameters:
Return type:

None

Curve()
  • Returns the curve of range N.
Parameters:N (int) –
Return type:IntAna_Curve
HasNextCurve()
  • Returns True if the Curve I shares its last bound with another curve.
Parameters:I (int) –
Return type:bool
HasPreviousCurve()
  • Returns True if the Curve I shares its first bound with another curve.
Parameters:I (int) –
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:
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 (int) –
  • U1 (float &) –
  • U2 (float &) –
Return type:

None

Perform()
  • Intersects a cylinder and a quadric . Tol est a definir plus precisemment.
Parameters:
Return type:

None

  • Intersects a cone and a quadric. Tol est a definir plus precisemment.
Parameters:
Return type:

None

Point()
  • Returns the point of range N.
Parameters:N (int) –
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:
Return type:

int

thisown

The membership flag

class IntAna_ListIteratorOfListOfCurve(*args)

Bases: object

Return type:None
Parameters:L (IntAna_ListOfCurve &) –
Return type:None
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 IntAna_ListNodeOfListOfCurve(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • I (IntAna_Curve &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:IntAna_Curve
thisown

The membership flag

class IntAna_ListOfCurve(*args)

Bases: object

Return type:None
Parameters:Other (IntAna_ListOfCurve &) –
Return type:None
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 IntAna_QuadQuadGeo(*args)

Bases: object

  • Empty constructor.
Return type:None
  • Creates the intersection between 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:
Return type:

None

  • Creates the intersection between 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:
Return type:

None

  • Creates the intersection between a plane and a sphere.
Parameters:
Return type:

None

  • Creates the intersection between 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:
Return type:

None

  • Creates the intersection between two cylinders.
Parameters:
Return type:

None

  • Creates the intersection between a Cylinder and a Sphere.
Parameters:
Return type:

None

  • Creates the intersection between a Cylinder and a Cone
Parameters:
Return type:

None

  • Creates the intersection between two Spheres.
Parameters:
Return type:

None

  • Creates the intersection beween a Sphere and a Cone.
Parameters:
Return type:

None

  • Creates the intersection beween two cones.
Parameters:
Return type:

None

  • Creates the intersection beween plane and torus.
Parameters:
Return type:

None

  • Creates the intersection beween cylinder and torus.
Parameters:
Return type:

None

  • Creates the intersection beween cone and torus.
Parameters:
Return type:

None

  • Creates the intersection beween sphere and torus.
Parameters:
Return type:

None

  • Creates the intersection beween two toruses.
Parameters:
Return type:

None

Circle()
  • Returns the circle solution of range Num.
Parameters:Num (int) –
Return type:gp_Circ
Ellipse()
  • Returns the ellipse solution of range Num.
Parameters:Num (int) –
Return type:gp_Elips
HasCommonGen()
Return type:bool
Hyperbola()
  • Returns the hyperbola solution of range Num.
Parameters:Num (int) –
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 (int) –
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 (int) –
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:
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:
Return type:

None

  • Intersects a plane and a sphere.
Parameters:
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:
Return type:

None

  • Intersects two cylinders
Parameters:
Return type:

None

  • Intersects a cylinder and a sphere.
Parameters:
Return type:

None

  • Intersects a cylinder and a cone.
Parameters:
Return type:

None

  • Intersects a two spheres.
Parameters:
Return type:

None

  • Intersects a sphere and a cone.
Parameters:
Return type:

None

  • Intersects two cones.
Parameters:
Return type:

None

  • Intersects plane and torus.
Parameters:
Return type:

None

  • Intersects cylinder and torus.
Parameters:
Return type:

None

  • Intersects cone and torus.
Parameters:
Return type:

None

  • Intersects sphere and torus.
Parameters:
Return type:

None

  • Intersects two toruses.
Parameters:
Return type:

None

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

The membership flag

class IntAna_Quadric(*args)

Bases: object

  • Empty Constructor
Return type:None
  • Creates a Quadric from a Pln
Parameters:P (gp_Pln) –
Return type:None
  • Creates a Quadric from a Sphere
Parameters:Sph (gp_Sphere) –
Return type:None
  • Creates a Quadric from a Cylinder
Parameters:Cyl (gp_Cylinder) –
Return type:None
  • Creates a Quadric from a Cone
Parameters:Cone (gp_Cone) –
Return type:None
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 SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases