![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MeshElementContainer.h>
Inheritance diagram for FMeshElementContainer:Classes | |
| class | FElementIDs |
Public Member Functions | |
| FMeshElementContainer ()=default | |
| FMeshElementContainer (const FMeshElementContainer &)=default | |
| FMeshElementContainer & | operator= (const FMeshElementContainer &)=default |
| FMeshElementContainer (FMeshElementContainer &&Other) | |
| FMeshElementContainer & | operator= (FMeshElementContainer &&Other) |
| void | Reset (const int32 Elements=0) |
| void | Reserve (const int32 Elements) |
| int32 | Add () |
| void | Insert (const int32 Index) |
| void | Remove (const int32 Index) |
| int32 | Num () const |
| int32 | GetArraySize () const |
| int32 | GetFirstValidID () const |
| bool | IsValid (const int32 Index) const |
| FAttributesSetBase & | GetAttributes () |
| const FAttributesSetBase & | GetAttributes () const |
| MESHDESCRIPTION_API void | Compact (TSparseArray< int32 > &OutIndexRemap) |
| MESHDESCRIPTION_API void | Remap (const TSparseArray< int32 > &IndexRemap) |
| FElementIDs | GetElementIDs () const |
Protected Attributes | |
| TBitArray | BitArray |
| FAttributesSetBase | Attributes |
| int32 | NumHoles = 0 |
Friends | |
| FArchive & | operator<< (FArchive &Ar, FMeshElementContainer &Container) |
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.
|
default |
|
default |
|
inline |
Move constructor which ensures that NumHoles is set correctly in the moved object
|
inline |
Add a new element at the next available index, and return the new ID
| void FMeshElementContainer::Compact | ( | TSparseArray< int32 > & | OutIndexRemap | ) |
Compacts elements and returns a remapping table
|
inline |
Returns the index after the last valid element
|
inline |
Accessor for attributes
|
inline |
|
inline |
Return iterable proxy object from container
|
inline |
Returns the first valid ID
Inserts a new element with the given index
Returns whether the given ID is valid or not
|
inline |
Returns the number of elements in the container
|
default |
|
inline |
Move assignment operator which ensures that NumHoles is set correctly in the moved object
| void FMeshElementContainer::Remap | ( | const TSparseArray< int32 > & | IndexRemap | ) |
Remaps elements according to the passed remapping table
Removes the element with the given ID
Reserves space for the specified total number of elements
Resets the container, optionally reserving space for elements to be added
|
friend |
Serializer
|
protected |
Attributes associated with this element container
|
protected |
A bit array of all indices currently in use
|
protected |
A count of the number of unused indices in the bit array. IMPORTANT: This must always correspond to the number of zeroes in the BitArray.