Mesh:getVertices

Edit

Returns the vertices in the Mesh.

vertices = Mesh:getVertices(index, count)

Arguments

NameTypeDefaultDescription
indexnumber1 The index of the first vertex to return.
countnumbernil The number of vertices to return. If nil, returns the "rest" of the vertices, based on the index argument.

Returns

NameTypeDescription
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.

See also