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
Name | Type | Description |
mesh | number |
The index of a mesh.
|
Returns
Name | Type | Description |
type | AttributeType |
The data type of each vertex index (always u16 or u32).
|
blob | number |
The index of a Blob in the mesh where the binary data is stored.
|
offset | number |
A byte offset into the Blob's data where the index data starts.
|
stride | number |
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