ModelData:getMeshVertex

Edit

Returns the data for a single vertex in a mesh.

x, y, z, nx, ny, nz, u, v, u2, v2, r, g, b, a, tx, ty, tz = ModelData:getMeshVertex(mesh, vertex)

Arguments

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

Returns

NameTypeDescription
xnumber The x component of the position.
ynumber The y component of the position.
znumber The z component of the position.
nxnumber The x component of the normal vector.
nynumber The y component of the normal vector.
nznumber The z component of the normal vector.
unumber The u component of the texture coordinate.
vnumber The v component of the texture coordinate.
u2number The u component of the second texture coordinate.
v2number The v component of the second texture coordinate.
rnumber The r component of the vertex color (0 to 255).
gnumber The g component of the vertex color (0 to 255).
bnumber The b component of the vertex color (0 to 255).
anumber The a component of the vertex color (0 to 255).
txnumber The x component of the tangent vector.
tynumber The y component of the tangent vector.
tznumber The z component of the tangent vector.

See also