esp::assets::MeshTransformNode struct

Stores meta data for objects with a multi-component transformation heirarchy.

Some mesh files include a transformation hierarchy. A MeshTransformNode stores this hierarchy and indices for the meshes and materials at each level such that it can be reused to instance meshes later.

Constructors, destructors, conversion operators

MeshTransformNode()
Default constructor.

Public variables

int meshIDLocal
Local mesh index within MeshMetaData::meshIndex.
int materialIDLocal
Local material index within MeshMetaData::materialIndex.
int componentID
Object index of asset component in the original file.
std::vector<MeshTransformNode> children
The component transformation subtrees with this node as the root.
Magnum::Matrix4 transformFromLocalToParent
Node local transform to the parent frame.