ESyS-Particle  4.0.1
Public Member Functions | List of all members
esys::lsm::GridIterator Class Reference

#include <GridIterator.h>

Public Member Functions

 GridIterator (int numPtsX, int numPtsY, int numPtsZ, double sphereRadius)
 GridIterator (const BoundingBox &particleBBox, double sphereRadius, bool hard_limit=false)
const BoundingBoxgetBoundingBox () const
BoundingBox getSphereBBox () const
bool hasNext () const
bool is2d () const
Vec3 getPoint () const
void increment ()
Vec3 next ()

Detailed Description

Class for iterating over the centre-points of spheres arranged in a regular lattice within a specified bounding box.

Constructor & Destructor Documentation

esys::lsm::GridIterator::GridIterator ( const BoundingBox particleBBox,
double  sphereRadius,
bool  hard_limit = false 
)
inline

setup GridIterator from bounding box and sphere radius

Member Function Documentation

bool esys::lsm::GridIterator::hasNext ( ) const
inline

Returns whether there are any points remaining in the iteration.

Referenced by esys::lsm::SphereBlockGenerator::generateSeedParticles().

Here is the caller graph for this function:

Vec3 esys::lsm::GridIterator::next ( )
inline

Returns the next regular-grid-point in the iteration.

Referenced by esys::lsm::SphereBlockGenerator::generateSeedParticles().

Here is the caller graph for this function:


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