UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::FMeshIndexMappings Struct Reference

#include <MeshIndexMappings.h>

Public Member Functions

GEOMETRYCORE_API void Initialize (FDynamicMesh3 *Mesh)
 
constexpr int InvalidID () const
 
void Reset ()
 
void ResetTriangleMap ()
 
FIndexMapiGetVertexMap ()
 
const FIndexMapiGetVertexMap () const
 
void SetVertex (int FromID, int ToID)
 
int GetNewVertex (int FromID) const
 
bool ContainsVertex (int FromID) const
 
FIndexMapiGetTriangleMap ()
 
const FIndexMapiGetTriangleMap () const
 
void SetTriangle (int FromID, int ToID)
 
int GetNewTriangle (int FromID) const
 
bool ContainsTriangle (int FromID) const
 
FIndexMapiGetGroupMap ()
 
const FIndexMapiGetGroupMap () const
 
void SetGroup (int FromID, int ToID)
 
int GetNewGroup (int FromID) const
 
bool ContainsGroup (int FromID) const
 
FIndexMapiGetUVMap (int UVLayer)
 
const FIndexMapiGetUVMap (int UVLayer) const
 
void SetUV (int UVLayer, int FromID, int ToID)
 
int GetNewUV (int UVLayer, int FromID) const
 
bool ContainsUV (int UVLayer, int FromID) const
 
FIndexMapiGetNormalMap (int NormalLayer)
 
const FIndexMapiGetNormalMap (int NormalLayer) const
 
void SetNormal (int NormalLayer, int FromID, int ToID)
 
int GetNewNormal (int NormalLayer, int FromID) const
 
bool ContainsNormal (int NormalLayer, int FromID) const
 
FIndexMapiGetColorMap ()
 
const FIndexMapiGetColorMap () const
 
void SetColor (int FromID, int ToID)
 
int GetNewColor (int FromID) const
 
bool ContainsColor (int FromID) const
 

Protected Attributes

FIndexMapi VertexMap
 
FIndexMapi TriangleMap
 
FIndexMapi GroupMap
 
FIndexMapi ColorMap
 
TArray< FIndexMapiUVMaps
 
TArray< FIndexMapiNormalMaps
 

Detailed Description

FMeshIndexMappings stores a set of integer IndexMaps for a mesh This is a convenient object to have, to avoid passing around large numbers of separate maps. The individual maps are not necessarily all filled by every operation.

Member Function Documentation

◆ ContainsColor()

bool UE::Geometry::FMeshIndexMappings::ContainsColor ( int  FromID) const
inline

◆ ContainsGroup()

bool UE::Geometry::FMeshIndexMappings::ContainsGroup ( int  FromID) const
inline

◆ ContainsNormal()

bool UE::Geometry::FMeshIndexMappings::ContainsNormal ( int  NormalLayer,
int  FromID 
) const
inline

◆ ContainsTriangle()

bool UE::Geometry::FMeshIndexMappings::ContainsTriangle ( int  FromID) const
inline

◆ ContainsUV()

bool UE::Geometry::FMeshIndexMappings::ContainsUV ( int  UVLayer,
int  FromID 
) const
inline

◆ ContainsVertex()

bool UE::Geometry::FMeshIndexMappings::ContainsVertex ( int  FromID) const
inline

◆ GetColorMap() [1/2]

FIndexMapi & UE::Geometry::FMeshIndexMappings::GetColorMap ( )
inline

◆ GetColorMap() [2/2]

const FIndexMapi & UE::Geometry::FMeshIndexMappings::GetColorMap ( ) const
inline

◆ GetGroupMap() [1/2]

FIndexMapi & UE::Geometry::FMeshIndexMappings::GetGroupMap ( )
inline

◆ GetGroupMap() [2/2]

const FIndexMapi & UE::Geometry::FMeshIndexMappings::GetGroupMap ( ) const
inline

◆ GetNewColor()

int UE::Geometry::FMeshIndexMappings::GetNewColor ( int  FromID) const
inline

◆ GetNewGroup()

int UE::Geometry::FMeshIndexMappings::GetNewGroup ( int  FromID) const
inline

◆ GetNewNormal()

int UE::Geometry::FMeshIndexMappings::GetNewNormal ( int  NormalLayer,
int  FromID 
) const
inline

◆ GetNewTriangle()

int UE::Geometry::FMeshIndexMappings::GetNewTriangle ( int  FromID) const
inline

◆ GetNewUV()

int UE::Geometry::FMeshIndexMappings::GetNewUV ( int  UVLayer,
int  FromID 
) const
inline

◆ GetNewVertex()

int UE::Geometry::FMeshIndexMappings::GetNewVertex ( int  FromID) const
inline

◆ GetNormalMap() [1/2]

FIndexMapi & UE::Geometry::FMeshIndexMappings::GetNormalMap ( int  NormalLayer)
inline

◆ GetNormalMap() [2/2]

const FIndexMapi & UE::Geometry::FMeshIndexMappings::GetNormalMap ( int  NormalLayer) const
inline

◆ GetTriangleMap() [1/2]

FIndexMapi & UE::Geometry::FMeshIndexMappings::GetTriangleMap ( )
inline

◆ GetTriangleMap() [2/2]

const FIndexMapi & UE::Geometry::FMeshIndexMappings::GetTriangleMap ( ) const
inline

◆ GetUVMap() [1/2]

FIndexMapi & UE::Geometry::FMeshIndexMappings::GetUVMap ( int  UVLayer)
inline

◆ GetUVMap() [2/2]

const FIndexMapi & UE::Geometry::FMeshIndexMappings::GetUVMap ( int  UVLayer) const
inline

◆ GetVertexMap() [1/2]

FIndexMapi & UE::Geometry::FMeshIndexMappings::GetVertexMap ( )
inline

◆ GetVertexMap() [2/2]

const FIndexMapi & UE::Geometry::FMeshIndexMappings::GetVertexMap ( ) const
inline

◆ Initialize()

void FMeshIndexMappings::Initialize ( FDynamicMesh3 Mesh)

Size internal arrays-of-maps to be suitable for this Mesh

◆ InvalidID()

constexpr int UE::Geometry::FMeshIndexMappings::InvalidID ( ) const
inlineconstexpr
Returns
the value used to indicate "invalid" in the mapping

◆ Reset()

void UE::Geometry::FMeshIndexMappings::Reset ( )
inline

◆ ResetTriangleMap()

void UE::Geometry::FMeshIndexMappings::ResetTriangleMap ( )
inline

◆ SetColor()

void UE::Geometry::FMeshIndexMappings::SetColor ( int  FromID,
int  ToID 
)
inline

◆ SetGroup()

void UE::Geometry::FMeshIndexMappings::SetGroup ( int  FromID,
int  ToID 
)
inline

◆ SetNormal()

void UE::Geometry::FMeshIndexMappings::SetNormal ( int  NormalLayer,
int  FromID,
int  ToID 
)
inline

◆ SetTriangle()

void UE::Geometry::FMeshIndexMappings::SetTriangle ( int  FromID,
int  ToID 
)
inline

◆ SetUV()

void UE::Geometry::FMeshIndexMappings::SetUV ( int  UVLayer,
int  FromID,
int  ToID 
)
inline

◆ SetVertex()

void UE::Geometry::FMeshIndexMappings::SetVertex ( int  FromID,
int  ToID 
)
inline

Member Data Documentation

◆ ColorMap

FIndexMapi UE::Geometry::FMeshIndexMappings::ColorMap
protected

◆ GroupMap

FIndexMapi UE::Geometry::FMeshIndexMappings::GroupMap
protected

◆ NormalMaps

TArray<FIndexMapi> UE::Geometry::FMeshIndexMappings::NormalMaps
protected

◆ TriangleMap

FIndexMapi UE::Geometry::FMeshIndexMappings::TriangleMap
protected

◆ UVMaps

TArray<FIndexMapi> UE::Geometry::FMeshIndexMappings::UVMaps
protected

◆ VertexMap

FIndexMapi UE::Geometry::FMeshIndexMappings::VertexMap
protected

The documentation for this struct was generated from the following files: