Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/DenseGrid3.h |
| Include | #include "Spatial/DenseGrid3.h" |
Syntax
template<typename ElemType>
class TDenseGrid3
Remarks
3D dense grid of floating-point scalar values.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< ElemType > | Buffer | Grid of allocated elements | |
| FVector3i | Dimensions | Dimensions per axis |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TDenseGrid3 () |
Create empty grid | ||
TDenseGrid3
(
int DimX, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Apply
(
TFunctionRef< ElemType(ElemType)> F |
||
| void | Assign
(
ElemType Value |
||
| const ElemType & | At
(
int I, |
||
| ElemType & | At
(
int I, |
||
| FAxisAlignedBox3i | Bounds () |
||
| FAxisAlignedBox3i | |||
| const FVector3i & | |||
| ElemType | |||
| ElemType | |||
| void | GetXPair
(
int X0, |
||
| const TArray< ElemType > & | GridValues () |
||
| TArray< ElemType > & | GridValues () |
||
| bool | IsValidIndex
(
const FVector3i& Index |
||
| void | ProcessValue
(
const FVector3i& CellCoords, |
Call an external lambda with a reference to the grid value at (X,Y,Z). | |
| void | ProcessValue
(
int32 X, |
Call an external lambda with a reference to the grid value at (X,Y,Z). | |
| void | Resize
(
int DimX, |
||
| void | Resize
(
int DimX, |
||
| void | |||
| void | |||
| void | Set the grid value at (X,Y,Z) | ||
| void | Set the grid value at (X,Y,Z) | ||
| int | Size () |
||
| FVector3i | ToIndex
(
int Idx |
||
| int | |||
| int | ToLinear
(
int X, |
Operators
| Type | Name | Description | |
|---|---|---|---|
| ElemType & | operator[]
(
int Idx |
||
| const ElemType & | operator[]
(
int Idx |
||
| ElemType & | operator[]
(
FVector3i Idx |
||
| const ElemType & | operator[]
(
FVector3i Idx |