Helper class to provide a cell based axis-aligned bounding box.
The AABB includes the cells with their x coordinate lying in [xBegin, xEnd], their y coordinate lying in [yBegin, yEnd] and their z coordinate lying in [zBegin, zEnd].
#include <BasicVoxelFileReader.h>
Public Member Functions | |
CellAABB () | |
Constructor to initialize all members to 0. More... | |
CellAABB (std::size_t _xBegin, std::size_t _yBegin, std::size_t _zBegin, std::size_t _xEnd, std::size_t _yEnd, std::size_t _zEnd) | |
Constructor to initialize all members. More... | |
std::size_t | numCells () const |
Gets the number cells included in the AABB. More... | |
std::size_t | xSize () const |
Gets the extent of the AABB in z direction. More... | |
std::size_t | ySize () const |
Gets the extent of the AABB in y direction. More... | |
std::size_t | zSize () const |
Gets the extent of the AABB in z direction. More... | |
Public Attributes | |
std::size_t | xBegin |
The minimal x coordinate of all cells included in the AABB. More... | |
std::size_t | yBegin |
The minimal y coordinate of all cells included in the AABB. More... | |
std::size_t | zBegin |
The minimal z coordinate of all cells included in the AABB. More... | |
std::size_t | xEnd |
The maximal x coordinate of all cells included in the AABB. More... | |
std::size_t | yEnd |
The maximal y coordinate of all cells included in the AABB. More... | |
std::size_t | zEnd |
The maximal z coordinate of all cells included in the AABB. More... | |
|
inline |
|
inline |
Constructor to initialize all members.
_xBegin | The minimal x coordinate of all cells included in the AABB. |
_yBegin | The minimal y coordinate of all cells included in the AABB. |
_zBegin | The minimal z coordinate of all cells included in the AABB. |
_xEnd | The maximal x coordinate of all cells included in the AABB. |
_yEnd | The maximal y coordinate of all cells included in the AABB. |
_zEnd | The maximal z coordinate of all cells included in the AABB. |
|
inline |
|
inline |
|
inline |
|
inline |
std::size_t walberla::geometry::CellAABB::xBegin |
The minimal x coordinate of all cells included in the AABB.
std::size_t walberla::geometry::CellAABB::xEnd |
The maximal x coordinate of all cells included in the AABB.
std::size_t walberla::geometry::CellAABB::yBegin |
The minimal y coordinate of all cells included in the AABB.
std::size_t walberla::geometry::CellAABB::yEnd |
The maximal y coordinate of all cells included in the AABB.
std::size_t walberla::geometry::CellAABB::zBegin |
The minimal z coordinate of all cells included in the AABB.
std::size_t walberla::geometry::CellAABB::zEnd |
The maximal z coordinate of all cells included in the AABB.