OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    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.
     Bnd_Sphere (const gp_XYZ &theCntr, const double theRad, const int theU, const int theV)
     Constructor of a definite sphere.
    int U () const noexcept
     Returns the U parameter on shape.
    int V () const noexcept
     Returns the V parameter on shape.
    bool IsValid () const noexcept
     Returns validity status, indicating that this sphere corresponds to a real entity.
    void SetValid (const bool isValid) noexcept
    const gp_XYZCenter () const noexcept
     Returns center of sphere object.
    double Radius () const noexcept
     Returns the radius value.
    void Distances (const gp_XYZ &theXYZ, double &theMin, double &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, double &theMin, double &theMax) const
     Calculate and return minimal and maximal distance to sphere. NOTE: This function is tightly optimized; any modifications may affect performance!
    bool Project (const gp_XYZ &theNode, gp_XYZ &theProjNode, double &theDist, bool &theInside) const
     Projects a point on entity. Returns true if success.
    double Distance (const gp_XYZ &theNode) const
    double SquareDistance (const gp_XYZ &theNode) const
    void Add (const Bnd_Sphere &theOther)
    bool IsOut (const Bnd_Sphere &theOther) const
    bool IsOut (const gp_XYZ &thePnt, double &theMaxDist) const
    double 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 double theRad,
    const int theU,
    const int 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
    inlinenoexcept

    Returns center of sphere object.

    ◆ Distance()

    double Bnd_Sphere::Distance ( const gp_XYZ & theNode) const

    ◆ Distances()

    void Bnd_Sphere::Distances ( const gp_XYZ & theXYZ,
    double & theMin,
    double & 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]

    bool Bnd_Sphere::IsOut ( const Bnd_Sphere & theOther) const

    ◆ IsOut() [2/2]

    bool Bnd_Sphere::IsOut ( const gp_XYZ & thePnt,
    double & theMaxDist ) const

    ◆ IsValid()

    bool Bnd_Sphere::IsValid ( ) const
    inlinenoexcept

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

    ◆ Project()

    bool Bnd_Sphere::Project ( const gp_XYZ & theNode,
    gp_XYZ & theProjNode,
    double & theDist,
    bool & theInside ) const

    Projects a point on entity. Returns true if success.

    ◆ Radius()

    double Bnd_Sphere::Radius ( ) const
    inlinenoexcept

    Returns the radius value.

    ◆ SetValid()

    void Bnd_Sphere::SetValid ( const bool isValid)
    inlinenoexcept

    ◆ SquareDistance()

    double Bnd_Sphere::SquareDistance ( const gp_XYZ & theNode) const

    ◆ SquareDistances()

    void Bnd_Sphere::SquareDistances ( const gp_XYZ & theXYZ,
    double & theMin,
    double & theMax ) const

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

    ◆ SquareExtent()

    double Bnd_Sphere::SquareExtent ( ) const

    ◆ U()

    int Bnd_Sphere::U ( ) const
    inlinenoexcept

    Returns the U parameter on shape.

    ◆ V()

    int Bnd_Sphere::V ( ) const
    inlinenoexcept

    Returns the V parameter on shape.


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