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