Navigation
Unreal Engine C++ API Reference > Runtime > Chaos > Chaos > FHeightField
References
Module | Chaos |
Header | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/HeightField.h |
Include | #include "Chaos/HeightField.h" |
Syntax
template<typename InStorageType>
struct FData
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FReal | HeightPerUnit | |
![]() |
TArray< StorageType > | Heights | Heights in the chosen format. |
![]() |
TArray< MinMaxHeights > | LowResolutionHeights | |
![]() |
TArray< uint8 > | MaterialIndices | |
![]() |
FReal | MaxValue | |
![]() |
FReal | MinValue | |
![]() |
uint16 | NumCols | |
![]() |
uint16 | NumColsLowRes | |
![]() |
uint16 | NumRows | |
![]() |
FReal | Range | |
![]() |
FVec3 | Scale | |
![]() |
VectorRegister4Float | ScaleSimd |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | A height bounds for grids of cells of size "LowResInc" square, for faster culling. | |
![]() ![]() |
int32 | CellIndexToVertexIndex
(
const int32 CellIndex |
Convert a Cell Index to a Vertex Index. Returns the vertex index of the first corner in the cell. The other corners will be (VertexIndex + 1), (VertexIndex + NumCols), (VertexIndex + NumCols + 1). Most functions in this class take a vertex index. |
![]() ![]() |
void | GetBounds
(
TVec2< int32 > CellIdx, |
|
![]() ![]() |
void | GetBoundsScaled
(
TVec2< int32 > CellIdx, |
|
![]() ![]() |
void | GetBoundsScaled
(
TVec2< int32 > CellIdx, |
|
![]() ![]() |
void | GetBoundsScaledSimd
(
int32 Index, |
|
![]() ![]() |
void | GetBoundsSimd
(
int32 Index, |
|
![]() ![]() |
constexpr FReal | ||
![]() ![]() |
constexpr FReal | GetCellWidth () |
|
![]() ![]() |
void | GetLowResBounds
(
TVec2< int32 > CellIdx, |
|
![]() ![]() |
void | GetLowResBoundsScaled
(
TVec2< int32 > CellIdx, |
|
![]() ![]() |
FReal | GetMaxHeight () |
|
![]() ![]() |
FReal | GetMinHeight () |
|
![]() ![]() |
FVec3 | GetPoint
(
int32 Index |
|
![]() ![]() |
void | ||
![]() ![]() |
void | GetPointsAndBounds
(
int32 Index, |
|
![]() ![]() |
void | GetPointsAndBoundsScaled
(
int32 Index, |
|
![]() ![]() |
void | GetPointsAndBoundsScaledSimd
(
int32 Index, |
|
![]() ![]() |
void | GetPointsAndBoundsSimd
(
int32 Index, |
|
![]() ![]() |
FVec3 | GetPointScaled
(
int32 Index |
|
![]() ![]() |
void | GetPointsScaled
(
int32 Index, |
|
![]() |
void | Serialize
(
FChaosArchive& Ar |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
MinMaxHeights |
Typedefs
Name | Description |
---|---|
StorageType | For ease of access through typedefs. |
Constants
Name | Description |
---|---|
LowResInc | |
RealSize | Data sizes to validate during serialization. |
StorageRange | Range of the chosen type (unsigned so Min is always 0) |
StorageSize |