Data structure for partitioning with a constant interval grid.
#include <Mesh/DataStructures/partitionconstantdata.h>
|
| PartitionConstantData (const Vector3d &minDim, const Vector3d &maxDim, double spacing) |
| Construct the array without initializing each element.
|
|
StoragePolicy::iterator | erase (typename StoragePolicy::iterator iter) |
|
bool | Exists (long x, long y, long z) const |
|
long | FindCellIndex (const Vector3d &pos, int axis) const |
| Find the axis index of the cell that encompasses pos.
|
|
long | FindCellIndex (double d, int axis) const |
| Find the axis index of the cell that encompasses d, which is the co-ordinate in the axis direction.
|
|
◆ PartitionConstantData()
◆ erase()
StoragePolicy::iterator erase |
( |
typename StoragePolicy::iterator |
iter | ) |
|
|
inlineprotected |
Erase just the cell pointed to by iter. Note that for a sorted vector storage policy, this will usually be quite expensive.
◆ Exists()
bool Exists |
( |
long |
x, |
|
|
long |
y, |
|
|
long |
z |
|
) |
| const |
|
inlineprotected |
- Returns
- True if the cell at index (x,y,z) is currently stored.