|
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.
| esys::lsm::GridIterator::GridIterator | ( | const BoundingBox & | particleBBox, |
| double | sphereRadius, | ||
| bool | hard_limit = false |
||
| ) | [inline] |
setup GridIterator from bounding box and sphere radius
| bool esys::lsm::GridIterator::hasNext | ( | ) | const [inline] |
Returns whether there are any points remaining in the iteration.
Referenced by esys::lsm::SphereBlockGenerator::generateSeedParticles().

| Vec3 esys::lsm::GridIterator::next | ( | ) | [inline] |
Returns the next regular-grid-point in the iteration.
Referenced by esys::lsm::SphereBlockGenerator::generateSeedParticles().

1.7.6.1