Open CASCADE Technology 6.6.0
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

 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

Bnd_Sphere::Bnd_Sphere ( )
Bnd_Sphere::Bnd_Sphere ( const gp_XYZ theCntr,
const Standard_Real  theRad,
const Standard_Integer  theU,
const Standard_Integer  theV 
)

Member Function Documentation

void Bnd_Sphere::Add ( const Bnd_Sphere theOther)
const gp_XYZ& Bnd_Sphere::Center ( ) const
Standard_Real Bnd_Sphere::Distance ( const gp_XYZ theNode) const
void Bnd_Sphere::Distances ( const gp_XYZ theXYZ,
Standard_Real theMin,
Standard_Real theMax 
) const
Standard_Boolean Bnd_Sphere::IsOut ( const Bnd_Sphere theOther) const
Standard_Boolean Bnd_Sphere::IsOut ( const gp_XYZ thePnt,
Standard_Real theMaxDist 
) const
Standard_Boolean Bnd_Sphere::IsValid ( ) const
Standard_Boolean Bnd_Sphere::Project ( const gp_XYZ theNode,
gp_XYZ theProjNode,
Standard_Real theDist,
Standard_Boolean theInside 
) const
Standard_Real Bnd_Sphere::Radius ( ) const
void Bnd_Sphere::SetValid ( const Standard_Boolean  isValid)
Standard_Real Bnd_Sphere::SquareDistance ( const gp_XYZ theNode) const
void Bnd_Sphere::SquareDistances ( const gp_XYZ theXYZ,
Standard_Real theMin,
Standard_Real theMax 
) const
Standard_Real Bnd_Sphere::SquareExtent ( ) const
Standard_Integer Bnd_Sphere::U ( ) const
Standard_Integer Bnd_Sphere::V ( ) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines