Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
IntAna_QuadQuadGeo Class Reference

Geometric intersections between two natural quadrics
(Sphere , Cylinder , Cone , Pln from gp).
The possible intersections are :
More...

#include <IntAna_QuadQuadGeo.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC IntAna_QuadQuadGeo ()
 Empty constructor.

 IntAna_QuadQuadGeo (const gp_Pln &P1, const gp_Pln &P2, const Standard_Real TolAng, const Standard_Real Tol)
 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).

void Perform (const gp_Pln &P1, const gp_Pln &P2, const Standard_Real TolAng, const Standard_Real Tol)
 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).

 IntAna_QuadQuadGeo (const gp_Pln &P, const gp_Cylinder &C, const Standard_Real Tolang, const Standard_Real Tol)
 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.

void Perform (const gp_Pln &P, const gp_Cylinder &C, const Standard_Real Tolang, const Standard_Real Tol)
 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.

 IntAna_QuadQuadGeo (const gp_Pln &P, const gp_Sphere &S)
 Creates the intersection between a plane and a sphere.

void Perform (const gp_Pln &P, const gp_Sphere &S)
 Intersects a plane and a sphere.

 IntAna_QuadQuadGeo (const gp_Pln &P, const gp_Cone &C, const Standard_Real Tolang, const Standard_Real Tol)
 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.

void Perform (const gp_Pln &P, const gp_Cone &C, const Standard_Real Tolang, const Standard_Real Tol)
 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.

 IntAna_QuadQuadGeo (const gp_Cylinder &Cyl1, const gp_Cylinder &Cyl2, const Standard_Real Tol)
 Creates the intersection between two cylinders.

void Perform (const gp_Cylinder &Cyl1, const gp_Cylinder &Cyl2, const Standard_Real Tol)
 Intersects two cylinders

 IntAna_QuadQuadGeo (const gp_Cylinder &Cyl, const gp_Sphere &Sph, const Standard_Real Tol)
 Creates the intersection between a Cylinder and a Sphere.

void Perform (const gp_Cylinder &Cyl, const gp_Sphere &Sph, const Standard_Real Tol)
 Intersects a cylinder and a sphere.

 IntAna_QuadQuadGeo (const gp_Cylinder &Cyl, const gp_Cone &Con, const Standard_Real Tol)
 Creates the intersection between a Cylinder and a Cone

void Perform (const gp_Cylinder &Cyl, const gp_Cone &Con, const Standard_Real Tol)
 Intersects a cylinder and a cone.

 IntAna_QuadQuadGeo (const gp_Sphere &Sph1, const gp_Sphere &Sph2, const Standard_Real Tol)
 Creates the intersection between two Spheres.

void Perform (const gp_Sphere &Sph1, const gp_Sphere &Sph2, const Standard_Real Tol)
 Intersects a two spheres.

 IntAna_QuadQuadGeo (const gp_Sphere &Sph, const gp_Cone &Con, const Standard_Real Tol)
 Creates the intersection beween a Sphere and a Cone.

void Perform (const gp_Sphere &Sph, const gp_Cone &Con, const Standard_Real Tol)
 Intersects a sphere and a cone.

 IntAna_QuadQuadGeo (const gp_Cone &Con1, const gp_Cone &Con2, const Standard_Real Tol)
 Creates the intersection beween two cones.

void Perform (const gp_Cone &Con1, const gp_Cone &Con2, const Standard_Real Tol)
 Intersects two cones.

Standard_Boolean IsDone () const
 Returns Standard_True if the computation was successful.


IntAna_ResultType TypeInter () const
 Returns the type of intersection.


Standard_Integer NbSolutions () const
 Returns the number of interesections.
The possible intersections are :

gp_Pnt Point (const Standard_Integer Num) const
 Returns the point solution of range Num.

gp_Lin Line (const Standard_Integer Num) const
 Returns the line solution of range Num.

gp_Circ Circle (const Standard_Integer Num) const
 Returns the circle solution of range Num.

gp_Elips Ellipse (const Standard_Integer Num) const
 Returns the ellipse solution of range Num.

gp_Parab Parabola (const Standard_Integer Num) const
 Returns the parabola solution of range Num.

gp_Hypr Hyperbola (const Standard_Integer Num) const
 Returns the hyperbola solution of range Num.

Standard_Boolean HasCommonGen () const
const gp_PntPChar () const

Protected Member Functions

void InitTolerances ()
 Initialize the values of inner tolerances.

Protected Attributes

Standard_Boolean done
Standard_Integer nbint
IntAna_ResultType typeres
gp_Pnt pt1
gp_Pnt pt2
gp_Dir dir1
gp_Dir dir2
Standard_Real param1
Standard_Real param2
Standard_Real param1bis
Standard_Real param2bis
Standard_Real myEPSILON_DISTANCE
Standard_Real myEPSILON_ANGLE_CONE
Standard_Real myEPSILON_MINI_CIRCLE_RADIUS
Standard_Real myEPSILON_CYLINDER_DELTA_RADIUS
Standard_Real myEPSILON_CYLINDER_DELTA_DISTANCE
Standard_Real myEPSILON_AXES_PARA
Standard_Boolean myCommonGen
gp_Pnt myPChar

Detailed Description


Constructor & Destructor Documentation


Member Function Documentation

      - 1 point <br>
      - 1 or 2 line(s) <br>
      - 1 Point and 1 Line <br>
      - 1 circle <br>
      - 1 ellipse <br>
      - 1 parabola <br>
      - 1 or 2 hyperbola(s). <br>



Field Documentation


The documentation for this class was generated from the following file: