ESyS-Particle  2.3.4
esys::lsm::HollowBoxPy Class Reference
Inheritance diagram for esys::lsm::HollowBoxPy:
Collaboration diagram for esys::lsm::HollowBoxPy:

Public Member Functions

 HollowBoxPy ()
 
 HollowBoxPy (const Vec3Py &minPt, const Vec3Py &maxPt)
 
 HollowBoxPy (const HollowBoxPy &box)
 
 HollowBoxPy (const BoundingBoxPy &box)
 
 HollowBoxPy (const BoundingBox &box)
 
bool intersectsWithSphere (const Vec3 &centre, double radius) const
 
bool intersectsWithSpherePy (const Vec3Py &centre, double radius) const
 
bool intersects (const SimpleSpherePy &p) const
 
- Public Member Functions inherited from esys::lsm::BoundingBoxPy
 BoundingBoxPy ()
 
 BoundingBoxPy (const Vec3Py &minPt, const Vec3Py &maxPt)
 
 BoundingBoxPy (const Vec3 &minPt, const Vec3 &maxPt)
 
 BoundingBoxPy (const BoundingBoxPy &v)
 
 BoundingBoxPy (const BoundingBox &v)
 
 BoundingBoxPy (const boost::python::object &pyMin, const boost::python::object &pyMax)
 
bool operator== (const BoundingBoxPy &bBox) const
 
Vec3Py getMinPtPy () const
 
Vec3Py getMaxPtPy () const
 
Vec3Py getSizePy () const
 
Vec3Py getCentrePy () const
 
bool intersectsWithVec3Py (const Vec3Py &pt) const
 
- Public Member Functions inherited from esys::lsm::BoundingBox
 BoundingBox ()
 
 BoundingBox (const Vec3 &minBBoxPt, const Vec3 &maxBBoxPt)
 
virtual ~BoundingBox ()
 
double getVolume () const
 
const Vec3getMinPt () const
 
const Vec3getMaxPt () const
 
bool operator== (const BoundingBox &bbox) const
 
Vec3 getSizes () const
 
bool contains (const Vec3 &pt, double tolerance=0.0) const
 

Constructor & Destructor Documentation

◆ HollowBoxPy() [1/5]

esys::lsm::HollowBoxPy::HollowBoxPy ( )
inline

◆ HollowBoxPy() [2/5]

esys::lsm::HollowBoxPy::HollowBoxPy ( const Vec3Py minPt,
const Vec3Py maxPt 
)
inline

◆ HollowBoxPy() [3/5]

esys::lsm::HollowBoxPy::HollowBoxPy ( const HollowBoxPy box)
inline

◆ HollowBoxPy() [4/5]

esys::lsm::HollowBoxPy::HollowBoxPy ( const BoundingBoxPy box)
inline

◆ HollowBoxPy() [5/5]

esys::lsm::HollowBoxPy::HollowBoxPy ( const BoundingBox box)
inline

Member Function Documentation

◆ intersects()

bool esys::lsm::HollowBoxPy::intersects ( const SimpleSpherePy p) const
inline

References SimpleParticle::getPos(), SimpleParticle::getRad(), and intersectsWithSphere().

Referenced by esys::lsm::exportMisc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intersectsWithSphere()

bool esys::lsm::HollowBoxPy::intersectsWithSphere ( const Vec3 centre,
double  radius 
) const
inline

Arvo's algorithm for axis-aligned hollow-box/solid-sphere intersection.

References esys::lsm::BoundingBox::getMaxPt(), and esys::lsm::BoundingBox::getMinPt().

Referenced by intersects(), and intersectsWithSpherePy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intersectsWithSpherePy()

bool esys::lsm::HollowBoxPy::intersectsWithSpherePy ( const Vec3Py centre,
double  radius 
) const
inline

References intersectsWithSphere().

Referenced by esys::lsm::exportMisc().

Here is the call graph for this function:
Here is the caller graph for this function:

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