OCC.Core.IntAna module¶
IntAna module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_intana.html
-
class
IntAna_Curve
(*args)¶ Bases:
object
- Empty Constructor
- rtype
None
-
D1u
()¶ - Returns the point and the first derivative at parameter Theta on the curve.
- param Theta
- type Theta
float
- param P
- type P
gp_Pnt
- param V
- type V
gp_Vec
- rtype
bool
-
Domain
()¶ - Returns the paramatric domain of the curve.
- param theFirst
- type theFirst
float
- param theLast
- type theLast
float
- rtype
None
-
FindParameter
()¶ - Tries to find the parameter of the point P on the curve. If the method returns False, the ‘projection’ is impossible. If the method returns True at least one parameter has been found. theParams is always sorted in ascending order.
- param P
- type P
gp_Pnt
- param theParams
- type theParams
TColStd_ListOfReal
- rtype
None
-
IsConstant
()¶ - Returns True if the function is constant.
- rtype
bool
-
IsFirstOpen
()¶ - Returns True if the domain is open at the beginning.
- rtype
bool
-
IsLastOpen
()¶ - Returns True if the domain is open at the end.
- rtype
bool
-
IsOpen
()¶ - Returns True if the curve is not infinite at the last parameter or at the first parameter of the domain.
- rtype
bool
-
SetConeQuadValues
()¶ - Sets the parameters used to compute Points and Derivative on the curve.
- param Cone
- type Cone
gp_Cone
- param Qxx
- type Qxx
float
- param Qyy
- type Qyy
float
- param Qzz
- type Qzz
float
- param Qxy
- type Qxy
float
- param Qxz
- type Qxz
float
- param Qyz
- type Qyz
float
- param Qx
- type Qx
float
- param Qy
- type Qy
float
- param Qz
- type Qz
float
- param Q1
- type Q1
float
- param Tol
- type Tol
float
- param DomInf
- type DomInf
float
- param DomSup
- type DomSup
float
- param TwoZForATheta
- type TwoZForATheta
bool
- param ZIsPositive
- type ZIsPositive
bool
- rtype
None
-
SetCylinderQuadValues
()¶ - Sets the parameters used to compute Points and Derivative on the curve.
- param Cylinder
- type Cylinder
gp_Cylinder
- param Qxx
- type Qxx
float
- param Qyy
- type Qyy
float
- param Qzz
- type Qzz
float
- param Qxy
- type Qxy
float
- param Qxz
- type Qxz
float
- param Qyz
- type Qyz
float
- param Qx
- type Qx
float
- param Qy
- type Qy
float
- param Qz
- type Qz
float
- param Q1
- type Q1
float
- param Tol
- type Tol
float
- param DomInf
- type DomInf
float
- param DomSup
- type DomSup
float
- param TwoZForATheta
- type TwoZForATheta
bool
- param ZIsPositive
- type ZIsPositive
bool
- rtype
None
-
SetDomain
()¶ - Trims this curve
- param theFirst
- type theFirst
float
- param theLast
- type theLast
float
- rtype
None
-
SetIsFirstOpen
()¶ - If flag is True, the Curve is not defined at the first parameter of its domain.
- param Flag
- type Flag
bool
- rtype
None
-
SetIsLastOpen
()¶ - If flag is True, the Curve is not defined at the first parameter of its domain.
- param Flag
- type Flag
bool
- rtype
None
-
Value
()¶ - Returns the point at parameter Theta on the curve.
- param Theta
- type Theta
float
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
class
IntAna_Int3Pln
(*args)¶ Bases:
object
- Return type
None* Determination of the intersection point between 3 planes. :param P1: :type P1: gp_Pln :param P2: :type P2: gp_Pln :param P3: :type P3: gp_Pln :rtype: None
-
IsDone
()¶ - Returns True if the computation was successful.
- rtype
bool
-
IsEmpty
()¶ - Returns True if there is no intersection POINT. If 2 planes are identical or parallel, IsEmpty will return True.
- rtype
bool
-
Perform
()¶ - Determination of the intersection point between 3 planes.
- param P1
- type P1
gp_Pln
- param P2
- type P2
gp_Pln
- param P3
- type P3
gp_Pln
- rtype
None
-
Value
()¶ - Returns the intersection point.
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
class
IntAna_IntConicQuad
(*args)¶ Bases:
object
- Empty constructor.
- rtype
None* Creates the intersection between a line and a quadric.
- param L
- type L
gp_Lin
- param Q
- type Q
IntAna_Quadric
- rtype
None* Creates the intersection between a circle and a quadric.
- param C
- type C
gp_Circ
- param Q
- type Q
IntAna_Quadric
- rtype
None* Creates the intersection between an ellipse and a quadric.
- param E
- type E
gp_Elips
- param Q
- type Q
IntAna_Quadric
- rtype
None* Creates the intersection between a parabola and a quadric.
- param P
- type P
gp_Parab
- param Q
- type Q
IntAna_Quadric
- rtype
None* Creates the intersection between an hyperbola and a quadric.
- param H
- type H
gp_Hypr
- param Q
- type Q
IntAna_Quadric
- rtype
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.
- param L
- type L
gp_Lin
- param P
- type P
gp_Pln
- param Tolang
- type Tolang
float
- param Tol
default value is 0
- type Tol
float
- param Len
default value is 0
- type Len
float
- rtype
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.
- param C
- type C
gp_Circ
- param P
- type P
gp_Pln
- param Tolang
- type Tolang
float
- param Tol
- type Tol
float
- rtype
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.
- param E
- type E
gp_Elips
- param P
- type P
gp_Pln
- param Tolang
- type Tolang
float
- param Tol
- type Tol
float
- rtype
None* Intersection between a parabola and a plane. Tolang is used to determine if the angle between two vectors is null.
- param Pb
- type Pb
gp_Parab
- param P
- type P
gp_Pln
- param Tolang
- type Tolang
float
- rtype
None* Intersection between an hyperbola and a plane. Tolang is used to determine if the angle between two vectors is null.
- param H
- type H
gp_Hypr
- param P
- type P
gp_Pln
- param Tolang
- type Tolang
float
- rtype
None
-
IsDone
()¶ - Returns True if the creation completed.
- rtype
bool
-
IsInQuadric
()¶ - Returns True if the conic is in the quadric.
- rtype
bool
-
IsParallel
()¶ - Returns True if the line is in a quadric which is parallel to the quadric.
- rtype
bool
-
NbPoints
()¶ - Returns the number of intersection point.
- rtype
int
-
ParamOnConic
()¶ - Returns the parameter on the line of the intersection point of range N.
- param N
- type N
int
- rtype
float
-
Perform
()¶ - Intersects a line and a quadric.
- param L
- type L
gp_Lin
- param Q
- type Q
IntAna_Quadric
- rtype
None* Intersects a circle and a quadric.
- param C
- type C
gp_Circ
- param Q
- type Q
IntAna_Quadric
- rtype
None* Intersects an ellipse and a quadric.
- param E
- type E
gp_Elips
- param Q
- type Q
IntAna_Quadric
- rtype
None* Intersects a parabola and a quadric.
- param P
- type P
gp_Parab
- param Q
- type Q
IntAna_Quadric
- rtype
None* Intersects an hyperbola and a quadric.
- param H
- type H
gp_Hypr
- param Q
- type Q
IntAna_Quadric
- rtype
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.
- param L
- type L
gp_Lin
- param P
- type P
gp_Pln
- param Tolang
- type Tolang
float
- param Tol
default value is 0
- type Tol
float
- param Len
default value is 0
- type Len
float
- rtype
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.
- param C
- type C
gp_Circ
- param P
- type P
gp_Pln
- param Tolang
- type Tolang
float
- param Tol
- type Tol
float
- rtype
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.
- param E
- type E
gp_Elips
- param P
- type P
gp_Pln
- param Tolang
- type Tolang
float
- param Tol
- type Tol
float
- rtype
None* Intersects a parabola and a plane. Tolang is used to determine if the angle between two vectors is null.
- param Pb
- type Pb
gp_Parab
- param P
- type P
gp_Pln
- param Tolang
- type Tolang
float
- rtype
None* Intersects an hyperbola and a plane. Tolang is used to determine if the angle between two vectors is null.
- param H
- type H
gp_Hypr
- param P
- type P
gp_Pln
- param Tolang
- type Tolang
float
- rtype
None
-
Point
()¶ - Returns the point of range N.
- param N
- type N
int
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
class
IntAna_IntLinTorus
(*args)¶ Bases:
object
- Return type
None* Creates the intersection between a line and a torus. :param L: :type L: gp_Lin :param T: :type T: gp_Torus :rtype: None
-
IsDone
()¶ - Returns True if the computation was successful.
- rtype
bool
-
NbPoints
()¶ - Returns the number of intersection points.
- rtype
int
-
ParamOnLine
()¶ - Returns the parameter on the line of the intersection point of range Index.
- param Index
- type Index
int
- rtype
float
-
ParamOnTorus
()¶ - Returns the parameters on the torus of the intersection point of range Index.
- param Index
- type Index
int
- param FI
- type FI
float
- param THETA
- type THETA
float
- rtype
None
-
Perform
()¶ - Intersects a line and a torus.
- param L
- type L
gp_Lin
- param T
- type T
gp_Torus
- rtype
None
-
Value
()¶ - Returns the intersection point of range Index.
- param Index
- type Index
int
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
class
IntAna_IntQuadQuad
(*args)¶ Bases:
object
- Empty Constructor
- rtype
None* Creates the intersection between a cylinder and a quadric . Tol est a definir plus precisemment.
- param C
- type C
gp_Cylinder
- param Q
- type Q
IntAna_Quadric
- param Tol
- type Tol
float
- rtype
None* Creates the intersection between a cone and a quadric. Tol est a definir plus precisemment.
- param C
- type C
gp_Cone
- param Q
- type Q
IntAna_Quadric
- param Tol
- type Tol
float
- rtype
None
-
Curve
()¶ - Returns the curve of range N.
- param N
- type N
int
- rtype
IntAna_Curve
-
HasNextCurve
()¶ - Returns True if the Curve I shares its last bound with another curve.
- param I
- type I
int
- rtype
bool
-
HasPreviousCurve
()¶ - Returns True if the Curve I shares its first bound with another curve.
- param I
- type I
int
- rtype
bool
-
IdenticalElements
()¶ - Returns True if the cylinder, the cone or the sphere is identical to the quadric.
- rtype
bool
-
IsDone
()¶ - Returns True if the computation was successful.
- rtype
bool
-
NbCurve
()¶ - Returns the number of curves solution.
- rtype
int
-
NbPnt
()¶ - Returns the number of contact point.
- rtype
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 theOpposite == 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.
- param I
- type I
int
- param theOpposite
- type theOpposite
bool
- rtype
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.
- param N
- type N
int
- param U1
- type U1
float
- param U2
- type U2
float
- rtype
None
-
Perform
()¶ - Intersects a cylinder and a quadric . Tol est a definir plus precisemment.
- param C
- type C
gp_Cylinder
- param Q
- type Q
IntAna_Quadric
- param Tol
- type Tol
float
- rtype
None* Intersects a cone and a quadric. Tol est a definir plus precisemment.
- param C
- type C
gp_Cone
- param Q
- type Q
IntAna_Quadric
- param Tol
- type Tol
float
- rtype
None
-
Point
()¶ - Returns the point of range N.
- param N
- type N
int
- rtype
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 theOpposite == 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.
- param I
- type I
int
- param theOpposite
- type theOpposite
bool
- rtype
int
-
property
thisown
¶ The membership flag
-
class
IntAna_ListIteratorOfListOfCurve
(*args)¶ Bases:
object
-
ChangeValue
()¶
-
More
()¶
-
Next
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntAna_ListOfCurve
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
Clear
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
Last
()¶
-
Prepend
()¶
-
Remove
()¶
-
RemoveFirst
()¶
-
Reverse
()¶
-
Set
()¶
-
Size
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
IntAna_QuadQuadGeo
(*args)¶ Bases:
object
- Empty constructor.
- rtype
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).
- param P1
- type P1
gp_Pln
- param P2
- type P2
gp_Pln
- param TolAng
- type TolAng
float
- param Tol
- type Tol
float
- rtype
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.
- param P
- type P
gp_Pln
- param C
- type C
gp_Cylinder
- param Tolang
- type Tolang
float
- param Tol
- type Tol
float
- param H
default value is 0
- type H
float
- rtype
None* Creates the intersection between a plane and a sphere.
- param P
- type P
gp_Pln
- param S
- type S
gp_Sphere
- rtype
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.
- param P
- type P
gp_Pln
- param C
- type C
gp_Cone
- param Tolang
- type Tolang
float
- param Tol
- type Tol
float
- rtype
None* Creates the intersection between two cylinders.
- param Cyl1
- type Cyl1
gp_Cylinder
- param Cyl2
- type Cyl2
gp_Cylinder
- param Tol
- type Tol
float
- rtype
None* Creates the intersection between a Cylinder and a Sphere.
- param Cyl
- type Cyl
gp_Cylinder
- param Sph
- type Sph
gp_Sphere
- param Tol
- type Tol
float
- rtype
None* Creates the intersection between a Cylinder and a Cone
- param Cyl
- type Cyl
gp_Cylinder
- param Con
- type Con
gp_Cone
- param Tol
- type Tol
float
- rtype
None* Creates the intersection between two Spheres.
- param Sph1
- type Sph1
gp_Sphere
- param Sph2
- type Sph2
gp_Sphere
- param Tol
- type Tol
float
- rtype
None* Creates the intersection beween a Sphere and a Cone.
- param Sph
- type Sph
gp_Sphere
- param Con
- type Con
gp_Cone
- param Tol
- type Tol
float
- rtype
None* Creates the intersection beween two cones.
- param Con1
- type Con1
gp_Cone
- param Con2
- type Con2
gp_Cone
- param Tol
- type Tol
float
- rtype
None* Creates the intersection beween plane and torus.
- param Pln
- type Pln
gp_Pln
- param Tor
- type Tor
gp_Torus
- param Tol
- type Tol
float
- rtype
None* Creates the intersection beween cylinder and torus.
- param Cyl
- type Cyl
gp_Cylinder
- param Tor
- type Tor
gp_Torus
- param Tol
- type Tol
float
- rtype
None* Creates the intersection beween cone and torus.
- param Con
- type Con
gp_Cone
- param Tor
- type Tor
gp_Torus
- param Tol
- type Tol
float
- rtype
None* Creates the intersection beween sphere and torus.
- param Sph
- type Sph
gp_Sphere
- param Tor
- type Tor
gp_Torus
- param Tol
- type Tol
float
- rtype
None* Creates the intersection beween two toruses.
- param Tor1
- type Tor1
gp_Torus
- param Tor2
- type Tor2
gp_Torus
- param Tol
- type Tol
float
- rtype
None
-
Circle
()¶ - Returns the circle solution of range Num.
- param Num
- type Num
int
- rtype
gp_Circ
-
Ellipse
()¶ - Returns the ellipse solution of range Num.
- param Num
- type Num
int
- rtype
gp_Elips
-
Hyperbola
()¶ - Returns the hyperbola solution of range Num.
- param Num
- type Num
int
- rtype
gp_Hypr
-
IsDone
()¶ - Returns Standard_True if the computation was successful.
- rtype
bool
-
Line
()¶ - Returns the line solution of range Num.
- param Num
- type Num
int
- rtype
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).
- rtype
int
-
Parabola
()¶ - Returns the parabola solution of range Num.
- param Num
- type Num
int
- rtype
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).
- param P1
- type P1
gp_Pln
- param P2
- type P2
gp_Pln
- param TolAng
- type TolAng
float
- param Tol
- type Tol
float
- rtype
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.
- param P
- type P
gp_Pln
- param C
- type C
gp_Cylinder
- param Tolang
- type Tolang
float
- param Tol
- type Tol
float
- param H
default value is 0
- type H
float
- rtype
None* Intersects a plane and a sphere.
- param P
- type P
gp_Pln
- param S
- type S
gp_Sphere
- rtype
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.
- param P
- type P
gp_Pln
- param C
- type C
gp_Cone
- param Tolang
- type Tolang
float
- param Tol
- type Tol
float
- rtype
None* Intersects two cylinders
- param Cyl1
- type Cyl1
gp_Cylinder
- param Cyl2
- type Cyl2
gp_Cylinder
- param Tol
- type Tol
float
- rtype
None* Intersects a cylinder and a sphere.
- param Cyl
- type Cyl
gp_Cylinder
- param Sph
- type Sph
gp_Sphere
- param Tol
- type Tol
float
- rtype
None* Intersects a cylinder and a cone.
- param Cyl
- type Cyl
gp_Cylinder
- param Con
- type Con
gp_Cone
- param Tol
- type Tol
float
- rtype
None* Intersects a two spheres.
- param Sph1
- type Sph1
gp_Sphere
- param Sph2
- type Sph2
gp_Sphere
- param Tol
- type Tol
float
- rtype
None* Intersects a sphere and a cone.
- param Sph
- type Sph
gp_Sphere
- param Con
- type Con
gp_Cone
- param Tol
- type Tol
float
- rtype
None* Intersects two cones.
- param Con1
- type Con1
gp_Cone
- param Con2
- type Con2
gp_Cone
- param Tol
- type Tol
float
- rtype
None* Intersects plane and torus.
- param Pln
- type Pln
gp_Pln
- param Tor
- type Tor
gp_Torus
- param Tol
- type Tol
float
- rtype
None* Intersects cylinder and torus.
- param Cyl
- type Cyl
gp_Cylinder
- param Tor
- type Tor
gp_Torus
- param Tol
- type Tol
float
- rtype
None* Intersects cone and torus.
- param Con
- type Con
gp_Cone
- param Tor
- type Tor
gp_Torus
- param Tol
- type Tol
float
- rtype
None* Intersects sphere and torus.
- param Sph
- type Sph
gp_Sphere
- param Tor
- type Tor
gp_Torus
- param Tol
- type Tol
float
- rtype
None* Intersects two toruses.
- param Tor1
- type Tor1
gp_Torus
- param Tor2
- type Tor2
gp_Torus
- param Tol
- type Tol
float
- rtype
None
-
Point
()¶ - Returns the point solution of range Num.
- param Num
- type Num
int
- rtype
gp_Pnt
-
TypeInter
()¶ - Returns the type of intersection.
- rtype
IntAna_ResultType
-
property
thisown
¶ The membership flag
-
class
IntAna_Quadric
(*args)¶ Bases:
object
- Empty Constructor
- rtype
None* Creates a Quadric from a Pln
- param P
- type P
gp_Pln
- rtype
None* Creates a Quadric from a Sphere
- param Sph
- type Sph
gp_Sphere
- rtype
None* Creates a Quadric from a Cylinder
- param Cyl
- type Cyl
gp_Cylinder
- rtype
None* Creates a Quadric from a Cone
- param Cone
- type Cone
gp_Cone
- rtype
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
- param xCXX
- type xCXX
float
- param xCYY
- type xCYY
float
- param xCZZ
- type xCZZ
float
- param xCXY
- type xCXY
float
- param xCXZ
- type xCXZ
float
- param xCYZ
- type xCYZ
float
- param xCX
- type xCX
float
- param xCY
- type xCY
float
- param xCZ
- type xCZ
float
- param xCCte
- type xCCte
float
- rtype
None
-
NewCoefficients
()¶ - Returns the coefficients of the polynomial equation ( written in the natural coordinates system ) in the local coordinates system defined by Axis
- param xCXX
- type xCXX
float
- param xCYY
- type xCYY
float
- param xCZZ
- type xCZZ
float
- param xCXY
- type xCXY
float
- param xCXZ
- type xCXZ
float
- param xCYZ
- type xCYZ
float
- param xCX
- type xCX
float
- param xCY
- type xCY
float
- param xCZ
- type xCZ
float
- param xCCte
- type xCCte
float
- param Axis
- type Axis
gp_Ax3
- rtype
None
-
SetQuadric
()¶ - Initializes the quadric with a Pln
- param P
- type P
gp_Pln
- rtype
None* Initialize the quadric with a Sphere
- param Sph
- type Sph
gp_Sphere
- rtype
None* Initializes the quadric with a Cone
- param Con
- type Con
gp_Cone
- rtype
None* Initializes the quadric with a Cylinder
- param Cyl
- type Cyl
gp_Cylinder
- rtype
None
-
SpecialPoints
()¶ - Returns the list of special points (with singularities)
- rtype
NCollection_List<gp_Pnt>
-
property
thisown
¶ The membership flag