UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TMeshElementArrayBase< ElementType > Class Template Reference

#include <MeshElementArray.h>

+ Inheritance diagram for TMeshElementArrayBase< ElementType >:

Public Member Functions

void Compact (TSparseArray< int32 > &OutIndexRemap)
 
void Remap (const TSparseArray< int32 > &IndexRemap)
 

Protected Attributes

TSparseArray< ElementType > Container
 

Friends

FArchiveoperator<< (FArchive &Ar, TMeshElementArrayBase &Array)
 

Detailed Description

template<typename ElementType>
class TMeshElementArrayBase< ElementType >

This defines the container used to hold mesh elements. Its important properties are that it acts as an associative container (i.e. an element can be obtained from a given index), and that insert/delete/find are cheap. The current implementation is as a TSparseArray, but we abstract it so that this can be changed later if required, e.g. a TMap might be desirable if we wished to maintain unique indices for the lifetime of the container.

Member Function Documentation

◆ Compact()

template<typename ElementType >
void TMeshElementArrayBase< ElementType >::Compact ( TSparseArray< int32 > &  OutIndexRemap)

Compacts elements and returns a remapping table

◆ Remap()

template<typename ElementType >
void TMeshElementArrayBase< ElementType >::Remap ( const TSparseArray< int32 > &  IndexRemap)

Remaps elements according to the passed remapping table

Friends And Related Symbol Documentation

◆ operator<<

template<typename ElementType >
FArchive & operator<< ( FArchive Ar,
TMeshElementArrayBase< ElementType > &  Array 
)
friend

Custom serialization for TMeshElementArrayBase. The default TSparseArray serialization also compacts all the elements, removing the gaps and changing the indices. The indices are significant in editable meshes, hence this is a custom serializer which preserves them.

Member Data Documentation

◆ Container

template<typename ElementType >
TSparseArray<ElementType> TMeshElementArrayBase< ElementType >::Container
protected

The actual container, represented by a sparse array


The documentation for this class was generated from the following file: