Open CASCADE Technology  6.9.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). More...

#include <Bnd_Sphere.hxx>

Public Member Functions

 Bnd_Sphere ()
 Empty constructor. More...
 
 Bnd_Sphere (const gp_XYZ &theCntr, const Standard_Real theRad, const Standard_Integer theU, const Standard_Integer theV)
 Constructor of a definite sphere. More...
 
Standard_Integer U () const
 Returns the U parameter on shape. More...
 
Standard_Integer V () const
 Returns the V parameter on shape. More...
 
Standard_Boolean IsValid () const
 Returns validity status, indicating that this sphere corresponds to a real entity. More...
 
void SetValid (const Standard_Boolean isValid)
 
const gp_XYZCenter () const
 Returns center of sphere object. More...
 
Standard_Real Radius () const
 Returns the radius value. More...
 
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! More...
 
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! More...
 
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. More...
 
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
 

Detailed Description

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

Constructor & Destructor Documentation

Bnd_Sphere::Bnd_Sphere ( )

Empty constructor.

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

Constructor of a definite sphere.

Member Function Documentation

void Bnd_Sphere::Add ( const Bnd_Sphere theOther)
const gp_XYZ& Bnd_Sphere::Center ( ) const

Returns center of sphere object.

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

Calculate and return minimal and maximal distance to sphere. NOTE: This function is tightly optimized; any modifications may affect performance!

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

Returns validity status, indicating that this sphere corresponds to a real entity.

Standard_Boolean Bnd_Sphere::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 Bnd_Sphere::Radius ( ) const

Returns the radius value.

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

Calculate and return minimal and maximal distance to sphere. NOTE: This function is tightly optimized; any modifications may affect performance!

Standard_Real Bnd_Sphere::SquareExtent ( ) const
Standard_Integer Bnd_Sphere::U ( ) const

Returns the U parameter on shape.

Standard_Integer Bnd_Sphere::V ( ) const

Returns the V parameter on shape.


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