{{newinoldin|[[0.9.0]]|090|[[0.10.0]]|100|type=function|text=Use [[Mesh:getVertex]] in a loop instead}}
Gets all the vertices in the Mesh.

{{notice|This method can be slow if the Mesh has a large number of vertices. Keep the original table used to create the Mesh around and update it when necessary instead of using this method frequently, if possible.}}

== Function ==
=== Synopsis ===
<source lang="lua">
vertices = Mesh:getVertices( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|table|vertices|The table filled with vertex information tables for each vertex as follows:}}
{{subparam|number|[1]|The position of the vertex on the x-axis.}}
{{subparam|number|[2]|The position of the vertex on the y-axis.}}
{{subparam|number|[3]|The horizontal component of the texture coordinate. Texture coordinates are normally in the range of [0, 1], but can be greater or less (see [[WrapMode]].)}}
{{subparam|number|[4]|The vertical component of the texture coordinate. Texture coordinates are normally in the range of [0, 1], but can be greater or less (see [[WrapMode]].)}}
{{subparam|number|[5] (255)|The red color component.}}
{{subparam|number|[6] (255)|The green color component.}}
{{subparam|number|[7] (255)|The blue color component.}}
{{subparam|number|[8] (255)|The alpha color component.}}
== See Also ==
* [[parent::Mesh]]
* [[Mesh:setVertices]]
* [[Mesh:getVertex]]
* [[Mesh:getVertexCount]]
[[Category:Functions]]
{{#set:Description=Gets all the vertices in the Mesh.}}
== Other Languages ==
{{i18n|Mesh:getVertices}}