FCompactMaps

Stores index remapping arrays for different types of elements Should only be used for compacting, and should maintain invariant that Map*[Idx] <= Idx for all maps

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

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

Include

#include "Util/CompactMaps.h"

Syntax

struct FCompactMaps

Remarks

Stores index remapping arrays for different types of elements Should only be used for compacting, and should maintain invariant that Map*[Idx] <= Idx for all maps

Variables

Name Description

Public variable

bool

 

bKeepTriangleMap

Public variable

TArray< int >

 

MapT

Public variable

TArray< int >

 

MapV

Functions

Name Description

Public function

void

 

ClearTriangleMap

(
    bool bPermanent
)

Clear all triangles

Public function Const

int

 

GetTriangle

(
    int FromID
)

Get mapping for a triangle

Public function Const

int

 

GetVertex

(
    int FromID
)

Get mapping for a vertex

Public function

void

 

Reset()

Reset all maps, leaving them empty

Public function

void

 

Reset

(
    int MaxVID,
    int MaxTID
)

Reset all maps, and initialize with InvalidID

Public function

void

 

SetIdentity

(
    int MaxVID,
    int MaxTID
)

Set up maps as identity maps.

triangle map will not be set if bKeepTriangleMap is false.

Public function

void

 

SetTriangle

(
    int FromID,
    int ToID
)

Set mapping for a triangle

Public function

void

 

SetVertex

(
    int FromID,
    int ToID
)

Set mapping for a vertex

Public function Const

bool

 

Validate()

Check data for validity; for testing

Constants

Name

Description

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