KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
Meshing::VolumeGridIterator< T > Struct Template Reference

Iterator over a 3D volume grid. More...

#include <VolumeGrid.h>

Public Member Functions

 VolumeGridIterator (const Array3D< T > &cells, const AABB3D &bb)
 
void setRange (const IntTriple &bmin, const IntTriple &bmax)
 
const T & operator* () const
 
T & operator* ()
 
const IntTriplegetIndex () const
 
void operator++ ()
 
bool isDone () const
 
void getCell (AABB3D &cell) const
 
void getCellCenter (Vector3 &c) const
 

Public Attributes

const Array3D< T > & cells
 
const AABB3Dbb
 
Array3D< T >::iterator it
 
IntTriple lo
 
IntTriple hi
 
IntTriple index
 
Vector3 cellCorner
 
Vector3 cellSize
 
Vector3 bbMin
 

Detailed Description

template<class T>
struct Meshing::VolumeGridIterator< T >

Iterator over a 3D volume grid.

Allows quick iteration and access to the 3D cell. Use the ++ operator until isDone() return true.


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