Navigation
API > API/Runtime > API/Runtime/MeshDescription
Class representing a collection of mesh elements, such as vertices or triangles. It has two purposes: 1) To generate new element IDs on demand, and recycle those which have been discarded. 2) To hold a map of attributes for a given element type and their values.
| Name | FMeshElementContainer |
| Type | class |
| Header File | /Engine/Source/Runtime/MeshDescription/Public/MeshElementContainer.h |
| Include Path | #include "MeshElementContainer.h" |
Syntax
class FMeshElementContainer
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshElementContainer
(
FMeshElementContainer&& Other |
Move constructor which ensures that NumHoles is set correctly in the moved object | MeshElementContainer.h | |
FMeshElementContainer
(
const FMeshElementContainer& |
MeshElementContainer.h | ||
| MeshElementContainer.h |
Classes
| Name | Remarks |
|---|---|
| FElementIDs | This is a special type of iterator which returns successive IDs of valid elements, rather than the elements themselves. |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Add() |
Add a new element at the next available index, and return the new ID | MeshElementContainer.h | |
void Compact
(
TSparseArray< int32 >& OutIndexRemap |
Compacts elements and returns a remapping table | MeshElementContainer.h | |
int32 GetArraySize() |
Returns the index after the last valid element | MeshElementContainer.h | |
const FAttributesSetBase & GetAttributes () |
MeshElementContainer.h | ||
| Accessor for attributes | MeshElementContainer.h | ||
FElementIDs GetElementIDs() |
Return iterable proxy object from container | MeshElementContainer.h | |
int32 GetFirstValidID() |
Returns the first valid ID | MeshElementContainer.h | |
void Insert
(
const int32 Index |
Inserts a new element with the given index | MeshElementContainer.h | |
bool IsValid
(
const int32 Index |
Returns whether the given ID is valid or not | MeshElementContainer.h | |
int32 Num() |
Returns the number of elements in the container | MeshElementContainer.h | |
void Remap
(
const TSparseArray< int32 >& IndexRemap |
Remaps elements according to the passed remapping table | MeshElementContainer.h | |
void Remove
(
const int32 Index |
Removes the element with the given ID | MeshElementContainer.h | |
void Reserve
(
const int32 Elements |
Reserves space for the specified total number of elements | MeshElementContainer.h | |
void Reset
(
const int32 Elements |
Resets the container, optionally reserving space for elements to be added | MeshElementContainer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshElementContainer & operator=
(
FMeshElementContainer&& Other |
Move assignment operator which ensures that NumHoles is set correctly in the moved object | MeshElementContainer.h | |
FMeshElementContainer & operator=
(
const FMeshElementContainer& |
MeshElementContainer.h |