A CustomDataTag is a BaseTag that stores custom point or polygon data. It is a generalized tag type to store mesh-based data like normals, UVs, vertex colors etc. It can replace dedicated tags like NormalTag, UVWTag or VertexColorTag.
A CustomDataTag gives access to data and functionality implemented with maxon::MeshAttribute, maxon::MeshAttributeClassInterface, maxon::CustomDataTagClassInterface and maxon::CustomDataTagDisplayInterface (see Mesh Attributes Interfaces).
A CustomDataTag object is created using the usual tools and the specific data type ID:
The data type stored in a given CustomDataTag is obtained with:
A CustomDataTag can stores either point data (CUSTOMDATATAG_MODE::VERTEX) or polygon point data (CUSTOMDATATAG_MODE::POLYVERTEX):
The number of stored elements is returned with:
The stored vertex data is accessed with these functions:
The stored polygon data is accessed with:
The maxon::PolyData template class stores data for either a triangle or quad: