FElementLinearization

[FElementLinearization](API\Plugins\GeometricObjects\Util\FElementLinearization) maps a potentially-sparse index list into a linear array.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Util/ElementLinearization.h

Include

#include "Util/ElementLinearization.h"

Syntax

class FElementLinearization

Remarks

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.

Variables

Name Description

Protected variable

TArray< int32 >

 

ToIdMap

Protected variable

TArray< int32 >

 

ToIndexMap

Constructors

Name Description

Public function

FElementLinearization()

Functions

Name Description

Public function

void

 

Empty()

Public function Const

int32

 

GetId

(
    int32 Index
)

Public function Const

int32

 

GetIndex

(
    int32 Id
)

Public function Const

bool

 

IsValidId

(
    int32 Id
)

Public function Const

bool

 

IsValidIndex

(
    int32 Index
)

Public function Const

int32

 

MaxId()

Following the FDynamicMesh3 convention this is really MaxId + 1.

Public function Const

int32

 

NumIds()

Public function Const

int32

 

NumIndices()

Public function

void

 

Populate

(
    const int32 MaxId,
    const int32 Count,
    IterableType Iterable
)

Public function Const

const TArray...

 

ToId()

Lookup ToVtxId(Index) = VtxId;.

Public function Const

const TArray...

 

ToIndex()

Lookup ToIndex(VtxId) = Index; may return FDynamicMesh3::InvalidID.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss