Navigation
API > API/Runtime > API/Runtime/GeometryCore
FElementLinearization maps a potentially-sparse index list into a linear array. Used linearize things like VtxIds of a mesh as a single array and allow bidirectional mapping between array offset and mesh VtxId. Linearized array offset can then be used for things like matrix row indexing when building a Laplacian matrix.
| Name | FElementLinearization |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Util/ElementLinearization.h |
| Include Path | #include "Util/ElementLinearization.h" |
Syntax
class FElementLinearization
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Util/ElementLinearization.h | |||
FElementLinearization
(
const FElementLinearization& |
Util/ElementLinearization.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Empty() |
Util/ElementLinearization.h | ||
int32 GetId
(
int32 Index |
Util/ElementLinearization.h | ||
int32 GetIndex
(
int32 Id |
Util/ElementLinearization.h | ||
bool IsValidId
(
int32 Id |
Util/ElementLinearization.h | ||
bool IsValidIndex
(
int32 Index |
Util/ElementLinearization.h | ||
int32 MaxId() |
Following the FDynamicMesh3 convention this is really MaxId + 1. | Util/ElementLinearization.h | |
int32 NumIds() |
Util/ElementLinearization.h | ||
int32 NumIndices() |
Util/ElementLinearization.h | ||
void Populate
(
const int32 MaxId, |
Util/ElementLinearization.h | ||
const TArray< int32 > & ToId() |
Lookup ToVtxId(Index) = VtxId;. | Util/ElementLinearization.h | |
const TArray< int32 > & ToIndex() |
Lookup ToIndex(VtxId) = Index; may return FDynamicMesh3::InvalidID. | Util/ElementLinearization.h |