Navigation
API > API/Runtime > API/Runtime/GeometryCore
Stores index remapping for vertices and triangles. Should only be used for compacting, and should maintain invariant that *Map[Idx] <= Idx for all maps
| Name | FCompactMaps |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Util/CompactMaps.h |
| Include Path | #include "Util/CompactMaps.h" |
Syntax
class FCompactMaps
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InvalidID | int32 | Util/CompactMaps.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| TriMap | TArray< int32 > | Util/CompactMaps.h | ||
| VertMap | TArray< int32 > | Util/CompactMaps.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetTriangleMapping
(
int32 FromID |
Get mapping for a triangle | Util/CompactMaps.h | |
FIndex3i GetVertexMapping
(
FIndex3i FromIDs |
Get mapping for three vertices, e.g. a triangle | Util/CompactMaps.h | |
int32 GetVertexMapping
(
int32 FromID |
Get mapping for a vertex | Util/CompactMaps.h | |
int32 NumTriangleMappings() |
Get number of triangle mappings | Util/CompactMaps.h | |
int32 NumVertexMappings() |
Get number of vertex mappings | Util/CompactMaps.h | |
void Reset () |
Reset all maps, leaving them empty | Util/CompactMaps.h | |
void Reset
(
int32 NumVertMappings, |
Resize vertex and triangle maps, and initialize with InvalidID. | Util/CompactMaps.h | |
void ResetTriangleMap
(
int32 NumTriMappings, |
Resize triangle map, and optionally initialize with InvalidID. | Util/CompactMaps.h | |
void ResetVertexMap
(
int32 NumVertMappings, |
Resize vertex map, and optionally initialize with InvalidID. | Util/CompactMaps.h | |
void SetIdentity
(
int32 NumVertMappings, |
Set up maps as identity maps. | Util/CompactMaps.h | |
void SetIdentityTriangleMap
(
int32 NumTriMappings |
Set up triangle map as identity map. | Util/CompactMaps.h | |
void SetIdentityVertexMap
(
int32 NumVertMappings |
Set up vertex map as identity map. | Util/CompactMaps.h | |
void SetTriangleMapping
(
int32 FromID, |
Set mapping for a triangle | Util/CompactMaps.h | |
void SetVertexMapping
(
int32 FromID, |
Set mapping for a vertex | Util/CompactMaps.h | |
bool TriangleMapIsSet() |
Returns true if there are triangle mappings. | Util/CompactMaps.h | |
bool Validate() |
Check data for validity; for testing | Util/CompactMaps.h | |
bool VertexMapIsSet() |
Returns true if there are vertex mappings. | Util/CompactMaps.h |