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
| Name | Type | Description |
| mesh | number |
The index of a mesh to get the vertex from.
|
| vertex | number |
The index of a vertex in the mesh to retrieve.
|
Returns
| Name | Type | Description |
| x | number |
The x component of the position.
|
| y | number |
The y component of the position.
|
| z | number |
The z component of the position.
|
| nx | number |
The x component of the normal vector.
|
| ny | number |
The y component of the normal vector.
|
| nz | number |
The z component of the normal vector.
|
| u | number |
The u component of the texture coordinate.
|
| v | number |
The v component of the texture coordinate.
|
| u2 | number |
The u component of the second texture coordinate.
|
| v2 | number |
The v component of the second texture coordinate.
|
| r | number |
The r component of the vertex color (0 to 255).
|
| g | number |
The g component of the vertex color (0 to 255).
|
| b | number |
The b component of the vertex color (0 to 255).
|
| a | number |
The a component of the vertex color (0 to 255).
|
| tx | number |
The x component of the tangent vector.
|
| ty | number |
The y component of the tangent vector.
|
| tz | number |
The z component of the tangent vector.
|
See also