TMeshElementArrayBase

This defines the container used to hold mesh elements.

Windows
MacOS
Linux

Inheritance Hierarchy

TMeshElementArrayBase

TMeshElementArray

References

Module

MeshDescription

Header

/Engine/Source/Runtime/MeshDescription/Public/MeshElementArray.h

Include

#include "MeshElementArray.h"

Syntax

template<typename ElementType>
class TMeshElementArrayBase

Remarks

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.

Variables

Name Description

Protected variable

TSparseArray< E...

 

Container

The actual container, represented by a sparse array

Functions

Name Description

Public function

void

 

Compact

(
    TSparseArray< int32 >& OutIndexRem...
)

Compacts elements and returns a remapping table

Public function

void

 

Remap

(
    const TSparseArray< int32 >& Index...
)

Remaps elements according to the passed remapping table

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss