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

This class represents a bounding sphere of a geometric entity
(triangle, segment of line or whatever else).

#include <Bnd_Sphere.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC Bnd_Sphere ()
 Empty constructor

 Bnd_Sphere (const gp_XYZ &theCntr, const Standard_Real theRad, const Standard_Integer theU, const Standard_Integer theV)
 Constructor of a definite sphere

Standard_Integer U () const
 Returns the U parameter on shape

Standard_Integer V () const
 Returns the V parameter on shape

Standard_Boolean IsValid () const
 Returns validity status, indicating that this
sphere corresponds to a real entity

void SetValid (const Standard_Boolean isValid)
const gp_XYZCenter () const
 Returns center of sphere object

Standard_Real Radius () const
 Returns the radius value

void Distances (const gp_XYZ &theXYZ, Standard_Real &theMin, Standard_Real &theMax) const
 Calculate and return minimal and maximal distance to sphere.
NOTE: This function is tightly optimized; any modifications
may affect performance!

void SquareDistances (const gp_XYZ &theXYZ, Standard_Real &theMin, Standard_Real &theMax) const
 Calculate and return minimal and maximal distance to sphere.
NOTE: This function is tightly optimized; any modifications
may affect performance!

Standard_Boolean Project (const gp_XYZ &theNode, gp_XYZ &theProjNode, Standard_Real &theDist, Standard_Boolean &theInside) const
 Projects a point on entity.
Returns true if success

Standard_Real Distance (const gp_XYZ &theNode) const
Standard_Real SquareDistance (const gp_XYZ &theNode) const
void Add (const Bnd_Sphere &theOther)
Standard_Boolean IsOut (const Bnd_Sphere &theOther) const
Standard_Boolean IsOut (const gp_XYZ &thePnt, Standard_Real &theMaxDist) const
Standard_Real SquareExtent () const

Constructor & Destructor Documentation


Member Function Documentation

void Bnd_Sphere::Distances ( const gp_XYZ theXYZ,
Standard_Real theMin,
Standard_Real theMax 
) const
Standard_Boolean Bnd_Sphere::IsOut ( const gp_XYZ thePnt,
Standard_Real theMaxDist 
) const
Standard_Boolean Bnd_Sphere::Project ( const gp_XYZ theNode,
gp_XYZ theProjNode,
Standard_Real theDist,
Standard_Boolean theInside 
) const
void Bnd_Sphere::SquareDistances ( const gp_XYZ theXYZ,
Standard_Real theMin,
Standard_Real theMax 
) const

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