ModelData:getMeshIndex

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

NameTypeDescription
meshnumber The index of a mesh to get the vertex from.
indexnumber The index of a vertex index in the mesh to retrieve.

Returns

NameTypeDescription
vertexindexnumber The vertex index. Like all indices in Lua, this is 1-indexed.

See also