Returns one of the vertex indices in a mesh. If a mesh has vertex indices, they define the order and connectivity of the vertices in the mesh, allowing a vertex to be reused multiple times without duplicating its data.
vertexindex = ModelData:getMeshIndex(mesh, index)
Arguments
| Name | Type | Description |
| mesh | number |
The index of a mesh to get the vertex from.
|
| index | number |
The index of a vertex index in the mesh to retrieve.
|
Returns
| Name | Type | Description |
| vertexindex | number |
The vertex index. Like all indices in Lua, this is 1-indexed.
|
See also