Data structure for representing a cell in the hash grid (used by the 'Hierarchical Hash Grids' coarse collision detection algorithm).
Public Attributes | |
BodyVector * | bodies_ |
The cell's body container that stores (handles to) all the bodies that are assigned to this cell. More... | |
offset_t * | neighborOffset_ |
Pointer to an array that is storing offsets that can be used to directly access all the neighboring cells in the hash grid. More... | |
size_t | occupiedCellsId_ |
The cell's index in the occupiedCells_ vector. More... | |
int | lastNonFixedBody_ |
marks the last body in the array which is not fixed More... | |
BodyVector* walberla::pe::ccd::HashGrids::HashGrid::Cell::bodies_ |
The cell's body container that stores (handles to) all the bodies that are assigned to this cell.
Note that only a pointer to such a body container is stored: in order to save memory, this container object is only allocated as long as there are bodies assigned to this cell.
int walberla::pe::ccd::HashGrids::HashGrid::Cell::lastNonFixedBody_ |
marks the last body in the array which is not fixed
offset_t* walberla::pe::ccd::HashGrids::HashGrid::Cell::neighborOffset_ |
Pointer to an array that is storing offsets that can be used to directly access all the neighboring cells in the hash grid.
size_t walberla::pe::ccd::HashGrids::HashGrid::Cell::occupiedCellsId_ |
The cell's index in the occupiedCells_ vector.