walberla::pe::ccd::HashGrids::HashGrid::Cell Struct Reference

Detailed Description

Data structure for representing a cell in the hash grid (used by the 'Hierarchical Hash Grids' coarse collision detection algorithm).

Public Attributes

BodyVectorbodies_
 The cell's body container that stores (handles to) all the bodies that are assigned to this cell. More...
 
offset_tneighborOffset_
 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...
 

Member Data Documentation

◆ bodies_

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.

◆ lastNonFixedBody_

int walberla::pe::ccd::HashGrids::HashGrid::Cell::lastNonFixedBody_

marks the last body in the array which is not fixed

◆ neighborOffset_

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.

◆ occupiedCellsId_

size_t walberla::pe::ccd::HashGrids::HashGrid::Cell::occupiedCellsId_

The cell's index in the occupiedCells_ vector.


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