|
| Grid3D () |
| Default constructor.
|
|
const Tuple3ui & | size () const |
| Returns the grid dimensions.
|
|
bool | isInitialized () const |
| Returns whether the grid has been initialized or not.
|
|
void | clear () |
| Clears the grid. More...
|
|
bool | init (unsigned di, unsigned dj, unsigned dk, unsigned margin, GridElement defaultCellValue=0) |
| Initializes the grid. More...
|
|
Tuple3i | computeCellPos (const CCVector3 &P, const CCVector3 &gridMinCorner, PointCoordinateType cellSize) const |
| Computes the (grid) cell position that contains a given point.
|
|
bool | intersectWith (GenericIndexedMesh *mesh, PointCoordinateType cellLength, const CCVector3 &gridMinCorner, GridElement intersectValue=0, GenericProgressCallback *progressCb=nullptr) |
| Intersects this grid with a mesh.
|
|
bool | intersectWith (GenericIndexedMesh *mesh, PointCoordinateType cellLength, const CCVector3 &gridMinCorner, genericCellTriIntersectionAction action, GenericProgressCallback *progressCb=nullptr) |
| Intersects this grid with a mesh (generic form)
|
|
bool | intersectWith (GenericCloud *cloud, PointCoordinateType cellLength, const CCVector3 &gridMinCorner, GridElement intersectValue=0, GenericProgressCallback *progressCb=nullptr) |
| Intersects this grid with a cloud.
|
|
void | setValue (int i, int j, int k, GridElement value) |
| Sets the value of a given cell. More...
|
|
void | setValue (const Tuple3i &cellPos, GridElement value) |
| Sets the value of a given cell. More...
|
|
const GridElement & | getValue (int i, int j, int k) const |
| Returns the value of a given cell (const version) More...
|
|
GridElement & | getValue (int i, int j, int k) |
| Returns the value of a given cell. More...
|
|
const GridElement & | getValue (const Tuple3i &cellPos) const |
| Returns the value of a given cell const version) More...
|
|
GridElement & | getValue (const Tuple3i &cellPos) |
| Returns the value of a given cell. More...
|
|
GridElement * | data () |
| Gives access to the internal grid data (with margin)
|
|
const GridElement * | data () const |
| Gives access to the internal grid data (with margin) (const version)
|
|
unsigned | innerCellCount () const |
| Returns the number of cell count (whithout margin)
|
|
unsigned | totalCellCount () const |
| Returns the total number of cell count (with margin)
|
|
template<class Type>
class CCCoreLib::Grid3D< Type >
Simple 3D grid structure.
The grid data is contiguous in memory.