Mesh:setVertices

Updates multiple vertices in the Mesh.

Mesh:setVertices(vertices, start, count)

Arguments

NameTypeDefaultDescription
verticestableThe new set of vertices.
startnumber1The index of the vertex to start replacing at.
countnumbernilThe 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