ESyS-Particle
4.0.1
|
#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 BoundingBox & | getBoundingBox () const |
BoundingBox | getSphereBBox () const |
bool | hasNext () const |
bool | is2d () const |
Vec3 | getPoint () const |
void | increment () |
Vec3 | next () |
Class for iterating over the centre-points of spheres arranged in a regular lattice within a specified bounding box.
|
inline |
setup GridIterator from bounding box and sphere radius
|
inline |
Returns whether there are any points remaining in the iteration.
Referenced by esys::lsm::SphereBlockGenerator::generateSeedParticles().
|
inline |
Returns the next regular-grid-point in the iteration.
Referenced by esys::lsm::SphereBlockGenerator::generateSeedParticles().