Returns the data for a single vertex in a blend shape. The data represents a displacement of the vertex position, normal, and tangent.
x, y, z, nx, ny, nz, tx, ty, tz = ModelData:getMeshBlendVertex(mesh, blendshape, vertex)
Arguments
| Name | Type | Description |
| mesh | number |
The index of a mesh.
|
| blendshape | number |
The index of a blend shape in the mesh.
|
| vertex | number |
The index of a vertex in the mesh.
|
Returns
| Name | Type | Description |
| x | number |
The x displacement of the vertex position.
|
| y | number |
The y displacement of the vertex position.
|
| z | number |
The z displacement of the vertex position.
|
| nx | number |
The x displacement of the vertex normal.
|
| ny | number |
The y displacement of the vertex normal.
|
| nz | number |
The z displacement of the vertex normal.
|
| tx | number |
The x displacement of the vertex tangent.
|
| ty | number |
The y displacement of the vertex tangent.
|
| tz | number |
The z displacement of the vertex tangent.
|
See also