![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <CompactMaps.h>
Public Member Functions | |
| void | SetIdentity (int32 NumVertMappings, int32 NumTriMappings) |
| void | SetIdentityVertexMap (int32 NumVertMappings) |
| void | SetIdentityTriangleMap (int32 NumTriMappings) |
| void | Reset (int32 NumVertMappings, int32 NumTriMappings, bool bInitializeWithInvalidID) |
| void | ResetVertexMap (int32 NumVertMappings, bool bInitializeWithInvalidID) |
| void | ResetTriangleMap (int32 NumTriMappings, bool bInitializeWithInvalidID) |
| void | Reset () |
| bool | VertexMapIsSet () const |
| bool | TriangleMapIsSet () const |
| int32 | NumVertexMappings () const |
| int32 | NumTriangleMappings () const |
| void | SetVertexMapping (int32 FromID, int32 ToID) |
| void | SetTriangleMapping (int32 FromID, int32 ToID) |
| int32 | GetVertexMapping (int32 FromID) const |
| FIndex3i | GetVertexMapping (FIndex3i FromIDs) const |
| int32 | GetTriangleMapping (int32 FromID) const |
| bool | Validate () const |
Static Public Attributes | |
| static constexpr int32 | InvalidID = IndexConstants::InvalidID |
Stores index remapping for vertices and triangles. Should only be used for compacting, and should maintain invariant that *Map[Idx] <= Idx for all maps
Get mapping for a triangle
Get mapping for three vertices, e.g. a triangle
Get mapping for a vertex
|
inline |
Get number of triangle mappings
|
inline |
Get number of vertex mappings
|
inline |
Reset all maps, leaving them empty
|
inline |
Resize vertex and triangle maps, and initialize with InvalidID.
| NumVertMappings | Size of post-reset vertex map |
| NumTriMappings | Size of post-reset triangle map |
| bInitializeWithInvalidID | If true, initializes maps with InvalidID |
|
inline |
Resize triangle map, and optionally initialize with InvalidID.
| NumTriMappings | Size of post-reset triangle map |
| bInitializeWithInvalidID | If true, initializes map with InvalidID |
|
inline |
Resize vertex map, and optionally initialize with InvalidID.
| NumVertMappings | Size of post-reset vertex map |
| bInitializeWithInvalidID | If true, initializes map with InvalidID |
Set up maps as identity maps.
| NumVertMappings | Vertex map will be created from 0 to NumVertMappings - 1 |
| NumTriMappings | Triangle map will be created from 0 to NumTriMappings - 1 |
Set up triangle map as identity map.
| NumTriMappings | Vertex map will be created from 0 to NumTriMappings - 1 |
Set up vertex map as identity map.
| NumVertMappings | Vertex map will be created from 0 to NumVertMappings - 1 |
Set mapping for a triangle
Set mapping for a vertex
|
inline |
Returns true if there are triangle mappings.
|
inline |
Check data for validity; for testing
|
inline |
Returns true if there are vertex mappings.