Mesh:getVertices
EditReturns the vertices in the Mesh.
vertices = Mesh:getVertices(index, count)Arguments
| Name | Type | Default | Description |
| index | number | 1 | The index of the first vertex to return. |
| count | number | nil |
The number of vertices to return. If nil, returns the "rest" of the vertices, based on the index argument.
|
Returns
| Name | Type | Description |
| vertices | {{number}} | A table of vertices. Each vertex is a table of numbers for each vertex attribute, given by the vertex format of the Mesh. |
Notes
This function returns nil if the mesh was created with gpu storage.