Mesh:setVertices
Updates multiple vertices in the Mesh.
Mesh:setVertices(vertices, start, count)
Arguments
Name | Type | Default | Description |
vertices | table | The new set of vertices. | |
start | number | 1 | The index of the vertex to start replacing at. |
count | number | nil | The number of vertices to replace. If nil, all vertices will be used. |
Returns
Nothing
Mesh:setVertices(blob, start, count)
Arguments
Name | Type | Default | Description |
blob | Blob | A Blob containing binary vertex data to upload (this is much more efficient). | |
start | number | 1 | The index of the vertex to start replacing at. |
count | number | nil | The number of vertices to replace. If nil, all vertices will be used. |
Returns
Nothing
Notes
The start index plus the number of vertices in the table should not exceed the maximum size of the Mesh.
See also
Mesh