ModelData:getMeshIndexFormat

Returns the data format of vertex indices in a mesh. If a mesh doesn't use vertex indices, this function returns nil.

type, blob, offset, stride = ModelData:getMeshIndexFormat(mesh)

Arguments

NameTypeDescription
meshnumber The index of a mesh.

Returns

NameTypeDescription
typeAttributeType The data type of each vertex index (always u16 or u32).
blobnumber The index of a Blob in the mesh where the binary data is stored.
offsetnumber A byte offset into the Blob's data where the index data starts.
stridenumber The number of bytes between subsequent vertex indices. Indices are always tightly packed, so this will always be 2 or 4 depending on the data type.

See also