ESyS-Particle  2.3.4
esys::lsm::BoundingBox Class Reference

3D bounding box More...

#include <BoundingBox.h>

Inheritance diagram for esys::lsm::BoundingBox:
Collaboration diagram for esys::lsm::BoundingBox:

Public Member Functions

 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
 

Private Attributes

Vec3 m_minPt
 
Vec3 m_maxPt
 

Detailed Description

3D bounding box

Constructor & Destructor Documentation

◆ BoundingBox() [1/2]

esys::lsm::BoundingBox::BoundingBox ( )
inline

◆ BoundingBox() [2/2]

esys::lsm::BoundingBox::BoundingBox ( const Vec3 minBBoxPt,
const Vec3 maxBBoxPt 
)
inline

◆ ~BoundingBox()

esys::lsm::BoundingBox::~BoundingBox ( )
inlinevirtual

Member Function Documentation

◆ contains()

bool esys::lsm::BoundingBox::contains ( const Vec3 pt,
double  tolerance = 0.0 
) const
inline

◆ getMaxPt()

const Vec3 & esys::lsm::BoundingBox::getMaxPt ( ) const
inline

References m_maxPt.

Referenced by contains(), esys::lsm::GougeConfig< GrainRandomBoxPackerPy, RandomBoxPackerPy, TaggedIdConnectionPy >::createGougeConfigGenerators(), esys::lsm::GougeBlockPrms::cutFromCentre(), esys::lsm::GougeConfigPrms< TmplParticleGrainGen >::cutFromCentre(), esys::lsm::GougeBlock3D::generate(), esys::lsm::RandomBlockGenerator::generateFillParticles(), esys::lsm::SphAggGougeBlock::generateMacroGrains(), esys::lsm::GranularGougeBlock3D::generateSeeds(), esys::lsm::BoundingBoxPy::getCentrePy(), esys::lsm::GougeConfigPy::getDomainBoundingBox(), esys::lsm::GougeBlockPrms::getFaultPackingInfoVector(), esys::lsm::GougeBlockPrms::getGougePackingInfoVector(), esys::lsm::GougeConfigPrms< TmplParticleGrainGen >::getGougePackingInfoVector(), esys::lsm::BoundingBoxPy::getMaxPtPy(), esys::lsm::CircularNeighbourTable< TmplParticle >::getModdedPosn(), esys::lsm::BoundingBoxPy::getSizePy(), getSizes(), esys::lsm::GridIterator::getSphereBBox(), esys::lsm::GougeBlock3D::GougeBlock3D(), esys::lsm::GougeConfig< TmplGrainRandomBoxPacker, TmplParticleRandomBoxPacker, TmplConnection >::GougeConfig(), esys::lsm::GridIterator::GridIterator(), esys::lsm::SolidBoxPy::intersectsWithSphere(), esys::lsm::HollowBoxPy::intersectsWithSphere(), esys::lsm::operator<<(), operator<<(), operator==(), esys::lsm::BoundingBoxPy::operator==(), esys::lsm::LsmMpiPy::setBBoxSpatialDomain(), esys::lsm::LsmMpiPy::setBBoxSpatialDomainWithCirc(), CheckPointController::setSpatialDomain(), esys::lsm::SphAggGougeBlock::setupNT2(), esys::lsm::GougeBlock3D::tagDrivingPlateParticles(), esys::lsm::GougeConfig< TmplGrainRandomBoxPacker, TmplParticleRandomBoxPacker, TmplConnection >::tagDrivingPlateParticles(), esys::lsm::GougeBlock3D::write(), and esys::lsm::GougeConfig< TmplGrainRandomBoxPacker, TmplParticleRandomBoxPacker, TmplConnection >::write().

Here is the caller graph for this function:

◆ getMinPt()

const Vec3 & esys::lsm::BoundingBox::getMinPt ( ) const
inline

References m_minPt.

Referenced by contains(), esys::lsm::GougeConfig< GrainRandomBoxPackerPy, RandomBoxPackerPy, TaggedIdConnectionPy >::createGougeConfigGenerators(), esys::lsm::GougeBlockPrms::cutFromCentre(), esys::lsm::GougeConfigPrms< TmplParticleGrainGen >::cutFromCentre(), esys::lsm::GougeBlock3D::generate(), esys::lsm::RandomBlockGenerator::generateFillParticles(), esys::lsm::SphAggGougeBlock::generateMacroGrains(), esys::lsm::GranularGougeBlock3D::generateSeeds(), esys::lsm::BoundingBoxPy::getCentrePy(), esys::lsm::GougeConfigPy::getDomainBoundingBox(), esys::lsm::GougeBlockPrms::getFaultPackingInfoVector(), esys::lsm::GougeBlockPrms::getGougePackingInfoVector(), esys::lsm::GougeConfigPrms< TmplParticleGrainGen >::getGougePackingInfoVector(), esys::lsm::NeighbourTable< TmplParticle >::getMinPt(), esys::lsm::CartesianGrid< Tensor >::getMinPt(), esys::lsm::BoundingBoxPy::getMinPtPy(), esys::lsm::CircularNeighbourTable< TmplParticle >::getModdedPosn(), esys::lsm::GridIterator::getPoint(), esys::lsm::BoundingBoxPy::getSizePy(), getSizes(), esys::lsm::GridIterator::getSphereBBox(), esys::lsm::GougeBlock3D::GougeBlock3D(), esys::lsm::GougeConfig< TmplGrainRandomBoxPacker, TmplParticleRandomBoxPacker, TmplConnection >::GougeConfig(), esys::lsm::GridIterator::GridIterator(), esys::lsm::SolidBoxPy::intersectsWithSphere(), esys::lsm::HollowBoxPy::intersectsWithSphere(), esys::lsm::operator<<(), operator<<(), operator==(), esys::lsm::BoundingBoxPy::operator==(), esys::lsm::LsmMpiPy::setBBoxSpatialDomain(), esys::lsm::LsmMpiPy::setBBoxSpatialDomainWithCirc(), CheckPointController::setSpatialDomain(), esys::lsm::SphAggGougeBlock::setupNT2(), esys::lsm::GougeBlock3D::tagDrivingPlateParticles(), esys::lsm::GougeConfig< TmplGrainRandomBoxPacker, TmplParticleRandomBoxPacker, TmplConnection >::tagDrivingPlateParticles(), esys::lsm::GougeBlock3D::write(), and esys::lsm::GougeConfig< TmplGrainRandomBoxPacker, TmplParticleRandomBoxPacker, TmplConnection >::write().

Here is the caller graph for this function:

◆ getSizes()

◆ getVolume()

double esys::lsm::BoundingBox::getVolume ( ) const
inline

References m_maxPt, m_minPt, Vec3::X(), Vec3::Y(), and Vec3::Z().

Here is the call graph for this function:

◆ operator==()

bool esys::lsm::BoundingBox::operator== ( const BoundingBox bbox) const
inline

References getMaxPt(), and getMinPt().

Here is the call graph for this function:

Member Data Documentation

◆ m_maxPt

Vec3 esys::lsm::BoundingBox::m_maxPt
private

Referenced by getMaxPt(), and getVolume().

◆ m_minPt

Vec3 esys::lsm::BoundingBox::m_minPt
private

Referenced by getMinPt(), and getVolume().


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