OCC.IntAna module¶
This package provides the intersections between :- Natural Quadrics when the result is a conic (QuadQuadGeo)- A natural Quadric and a Quadric defined by its Coefficients(IntQuadQuad)- 3 Pln (Int3Pln)- a Line and a Torus (IntLinTorus)- a Conic from gp and a Quadric defined by its Coefficients(IntConicQuad)-Level: PublicAll the methods of the classes of this package are public.
-
class
Handle_IntAna_ListNodeOfListOfCurve
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
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:
-
Domain
()¶ - Returns the paramatric domain of the curve.
Parameters: - Theta1 (float &) –
- Theta2 (float &) –
Return type:
-
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:
-
InternalUVValue
()¶ - Protected function.
Parameters: - Param (float) –
- U (float &) –
- V (float &) –
- A (float &) –
- B (float &) –
- C (float &) –
- Co (float &) –
- Si (float &) –
- Di (float &) –
Return type:
-
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:
-
SetCylinderQuadValues
()¶ - Sets the parameters used to compute Points and Derivative on the curve.
Parameters: Return type:
-
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: -
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:
-
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: - Creates the intersection between a circle and a quadric.
Parameters: - C (gp_Circ) –
- Q (IntAna_Quadric &) –
Return type: - Creates the intersection between an ellipse and a quadric.
Parameters: - E (gp_Elips) –
- Q (IntAna_Quadric &) –
Return type: - Creates the intersection between a parabola and a quadric.
Parameters: - P (gp_Parab) –
- Q (IntAna_Quadric &) –
Return type: - Creates the intersection between an hyperbola and a quadric.
Parameters: - H (gp_Hypr) –
- Q (IntAna_Quadric &) –
Return type: - 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: - 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: - 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: - Intersection between a parabola and a plane. Tolang is used to determine if the angle between two vectors is null.
Parameters: Return type: - Intersection between an hyperbola and a plane. Tolang is used to determine if the angle between two vectors is null.
Parameters: Return type: -
IsParallel
()¶ - Returns True if the line is in a quadric which is parallel to the quadric.
Return type: bool
-
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: - Intersects a circle and a quadric.
Parameters: - C (gp_Circ) –
- Q (IntAna_Quadric &) –
Return type: - Intersects an ellipse and a quadric.
Parameters: - E (gp_Elips) –
- Q (IntAna_Quadric &) –
Return type: - Intersects a parabola and a quadric.
Parameters: - P (gp_Parab) –
- Q (IntAna_Quadric &) –
Return type: - Intersects an hyperbola and a quadric.
Parameters: - H (gp_Hypr) –
- Q (IntAna_Quadric &) –
Return type: - 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: - 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: - 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: - Intersects a parabola and a plane. Tolang is used to determine if the angle between two vectors is null.
Parameters: Return type: - Intersects an hyperbola and a plane. Tolang is used to determine if the angle between two vectors is null.
Parameters: Return type:
-
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: -
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:
-
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: - C (gp_Cylinder) –
- Q (IntAna_Quadric &) –
- Tol (float) –
Return type: - Creates the intersection between a cone and a quadric. Tol est a definir plus precisemment.
Parameters: Return type: -
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
-
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:
-
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:
-
Perform
()¶ - Intersects a cylinder and a quadric . Tol est a definir plus precisemment.
Parameters: - C (gp_Cylinder) –
- Q (IntAna_Quadric &) –
- Tol (float) –
Return type: - Intersects a cone and a quadric. Tol est a definir plus precisemment.
Parameters: Return type:
-
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:
-
thisown
¶ The membership flag
-
class
IntAna_ListIteratorOfListOfCurve
(*args)¶ Bases:
object
Return type: None Parameters: L (IntAna_ListOfCurve &) – 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: -
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: Return type: Return type:
-
First
()¶ Return type: IntAna_Curve
-
InsertAfter
()¶ Parameters: - I (IntAna_Curve &) –
- It (IntAna_ListIteratorOfListOfCurve &) –
- Other (IntAna_ListOfCurve &) –
- It –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - I (IntAna_Curve &) –
- It (IntAna_ListIteratorOfListOfCurve &) –
- Other (IntAna_ListOfCurve &) –
- It –
Return type: Return type:
-
Last
()¶ Return type: IntAna_Curve
-
Prepend
()¶ Parameters: - I (IntAna_Curve &) –
- I –
- theIt (IntAna_ListIteratorOfListOfCurve &) –
- Other (IntAna_ListOfCurve &) –
Return type: Return type: Return type:
-
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: - 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: - P (gp_Pln) –
- C (gp_Cylinder) –
- Tolang (float) –
- Tol (float) –
- H (float) – default value is 0
Return type: - Creates the intersection between a plane and a sphere.
Parameters: Return type: - 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: - Creates the intersection between two cylinders.
Parameters: - Cyl1 (gp_Cylinder) –
- Cyl2 (gp_Cylinder) –
- Tol (float) –
Return type: - Creates the intersection between a Cylinder and a Sphere.
Parameters: - Cyl (gp_Cylinder) –
- Sph (gp_Sphere) –
- Tol (float) –
Return type: - Creates the intersection between a Cylinder and a Cone
Parameters: - Cyl (gp_Cylinder) –
- Con (gp_Cone) –
- Tol (float) –
Return type: - Creates the intersection between two Spheres.
Parameters: Return type: - Creates the intersection beween a Sphere and a Cone.
Parameters: Return type: - Creates the intersection beween two cones.
Parameters: Return type: - Creates the intersection beween plane and torus.
Parameters: Return type: - Creates the intersection beween cylinder and torus.
Parameters: - Cyl (gp_Cylinder) –
- Tor (gp_Torus) –
- Tol (float) –
Return type: - Creates the intersection beween cone and torus.
Parameters: Return type: - Creates the intersection beween sphere and torus.
Parameters: Return type: - Creates the intersection beween two toruses.
Parameters: Return type: -
Hyperbola
()¶ - Returns the hyperbola solution of range Num.
Parameters: Num (int) – Return type: gp_Hypr
-
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
-
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: - 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: - Intersects a plane and a sphere.
Parameters: Return type: - 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: - Intersects two cylinders
Parameters: - Cyl1 (gp_Cylinder) –
- Cyl2 (gp_Cylinder) –
- Tol (float) –
Return type: - Intersects a cylinder and a sphere.
Parameters: - Cyl (gp_Cylinder) –
- Sph (gp_Sphere) –
- Tol (float) –
Return type: - Intersects a cylinder and a cone.
Parameters: - Cyl (gp_Cylinder) –
- Con (gp_Cone) –
- Tol (float) –
Return type: - Intersects a two spheres.
Parameters: Return type: - Intersects a sphere and a cone.
Parameters: Return type: - Intersects two cones.
Parameters: Return type: - Intersects plane and torus.
Parameters: Return type: - Intersects cylinder and torus.
Parameters: - Cyl (gp_Cylinder) –
- Tor (gp_Torus) –
- Tol (float) –
Return type: - Intersects cone and torus.
Parameters: Return type: - Intersects sphere and torus.
Parameters: Return type: - Intersects two toruses.
Parameters: Return type:
-
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:
-
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:
-
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
()¶
-
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases