Mesh:setVertex
Sets the properties of a vertex in the Mesh.

In versions prior to 11.0, color and byte component values were within the range of 0 to 255 instead of 0 to 1.
Mesh:setVertex( index, attributecomponent, ... )
index number The index of the the vertex you want to modify (one-based).
attributecomponent number The first component of the first vertex attribute in the specified vertex.
... number Additional components of all vertex attributes in the specified vertex.
Mesh:setVertex( index, vertex )
index number The index of the the vertex you want to modify (one-based).
vertex table A table with vertex information, in the form of {attributecomponent, ...}.
vertex.attributecomponent number The first component of the first vertex attribute in the specified vertex.
vertex.... number Additional components of all vertex attributes in the specified vertex.
Mesh:setVertex( index, x, y, u, v, r, g, b, a )
index number The index of the the vertex you want to modify (one-based).
x number The position of the vertex on the x-axis.
y number The position of the vertex on the y-axis.
u number The horizontal component of the texture coordinate.
v number The vertical component of the texture coordinate.
r (1) number The red component of the vertex's color.
g (1) number The green component of the vertex's color.
b (1) number The blue component of the vertex's color.
a (1) number The alpha component of the vertex's color.
Mesh:setVertex( index, vertex )
index number The index of the the vertex you want to modify (one-based).
vertex table A table with vertex information.
vertex.1 number The position of the vertex on the x-axis.
vertex.2 number The position of the vertex on the y-axis.
vertex.3 number The u texture coordinate. Texture coordinates are normally in the range of 1, but can be greater or less (see WrapMode.)
vertex.4 number The v texture coordinate. Texture coordinates are normally in the range of 1, but can be greater or less (see WrapMode.)
vertex.5 (1) number The red color component.
vertex.6 (1) number The green color component.
vertex.7 (1) number The blue color component.
vertex.8 (1) number The alpha color component.