TMeshAttributeArrayBase

This defines the container used to hold mesh element attributes of a particular name and index.

Windows
MacOS
Linux

Inheritance Hierarchy

TMeshAttributeArrayBase

TMeshAttributeArray

References

Module

MeshDescription

Header

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

Include

#include "MeshAttributeArray.h"

Syntax

template<typename AttributeType>
class TMeshAttributeArrayBase

Remarks

This defines the container used to hold mesh element attributes of a particular name and index. It is a simple TArray, so that all attributes are packed contiguously for each element ID.

that the container may grow arbitrarily as new elements are inserted, but it will never be shrunk as elements are removed. The only operations that will shrink the container are Initialize() and Remap().

Variables

Name Description

Protected variable

TArray< Attribu...

 

Container

The actual container, represented by a regular array

Functions

Name Description

Public function Const

const Attrib...

 

GetData()

Return base of data

Public function Const

uint32

 

GetHash

(
    uint32 Crc
)

Public function

void

 

Initialize

(
    const int32 ElementCount,
    const AttributeType& Default
)

Initializes the array to the given size with the default value

Public function

void

 

Insert

(
    const int32 Index,
    const AttributeType& Default
)

Expands the array if necessary so that the passed element index is valid.

Public function Const

int32

 

Num()

Return size of container

Public function

void

 

Remap

(
    const TSparseArray< int32 >& Index...,
    const AttributeType& Default
)

Remaps elements according to the passed remapping table

Operators

Name Description

Public function Const

const Attrib...

 

operator[]

(
    const int32 Index
)

Element accessors

Public function

AttributeTyp...

 

operator[]

(
    const int32 Index
)

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