Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/SparseGrid3.h |
Include |
#include "Spatial/SparseGrid3.h" |
template<typename ElemType>
class TSparseGrid3
Dynamic sparse 3D grid. Useful in cases where we have grid of some type of non-trivial object and we don't want to pre-allocate full grid of them. So we allocate on-demand. This can be used to implement multi-grid schemes, eg for example the ElemType could be sub-grid of fixed dimension.
Name | Description | |
---|---|---|
|
TSparseGrid3() |
Create empty grid |
Name | Description | |
---|---|---|
|
~TSparseGrid3() |
Deletes all grid elements |
Name | Description | ||
---|---|---|---|
|
ElemType ... |
Allocate ( |
|
|
AllocatedIteration ( |
Iterate over existing elements and apply ElementFunc to each of them |
|
|
Free ( |
Delete an element in the grid |
|
|
FreeAll() |
Delete all elements in the grid |
|
|
const ElemTy... |
Get ( |
Get the grid element at this index |
|
ElemType ... |
Get |
Get the grid element at this index, and optionally allocate it if it doesn't exist |
|
FAxisAligned... |
GetBoundsInclusive() |
|
|
int |
GetCount() |
|
|
float |
GetDensity() |
|
|
GetDimensions() |
||
|
Has ( |