![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ElementLinearization.h>
Public Member Functions | |
| FElementLinearization ()=default | |
| const TArray< int32 > & | ToId () const |
| const TArray< int32 > & | ToIndex () const |
| int32 | NumIds () const |
| int32 | MaxId () const |
| int32 | NumIndices () const |
| bool | IsValidId (int32 Id) const |
| bool | IsValidIndex (int32 Index) const |
| int32 | GetIndex (int32 Id) const |
| int32 | GetId (int32 Index) const |
| void | Empty () |
| template<typename IterableType > | |
| void | Populate (const int32 MaxId, const int32 Count, IterableType Iterable) |
Protected Attributes | |
| TArray< int32 > | ToIdMap |
| TArray< int32 > | ToIndexMap |
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.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |