Open CASCADE Technology  7.3.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() [1/2]

Bnd_Sphere::Bnd_Sphere ( )

Empty constructor.

◆ Bnd_Sphere() [2/2]

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

◆ Add()

void Bnd_Sphere::Add ( const Bnd_Sphere theOther)

◆ Center()

const gp_XYZ& Bnd_Sphere::Center ( ) const

Returns center of sphere object.

◆ Distance()

Standard_Real Bnd_Sphere::Distance ( const gp_XYZ theNode) const

◆ Distances()

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!

◆ IsOut() [1/2]

Standard_Boolean Bnd_Sphere::IsOut ( const Bnd_Sphere theOther) const

◆ IsOut() [2/2]

Standard_Boolean Bnd_Sphere::IsOut ( const gp_XYZ thePnt,
Standard_Real theMaxDist 
) const

◆ IsValid()

Standard_Boolean Bnd_Sphere::IsValid ( ) const

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

◆ Project()

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.

◆ Radius()

Standard_Real Bnd_Sphere::Radius ( ) const

Returns the radius value.

◆ SetValid()

void Bnd_Sphere::SetValid ( const Standard_Boolean  isValid)

◆ SquareDistance()

Standard_Real Bnd_Sphere::SquareDistance ( const gp_XYZ theNode) const

◆ SquareDistances()

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!

◆ SquareExtent()

Standard_Real Bnd_Sphere::SquareExtent ( ) const

◆ U()

Standard_Integer Bnd_Sphere::U ( ) const

Returns the U parameter on shape.

◆ V()

Standard_Integer Bnd_Sphere::V ( ) const

Returns the V parameter on shape.


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