{{newin|[[0.9.0]]|090|type=function}}
Gets the vertex map for the Mesh. The vertex map describes the order in which the vertices are used when the Mesh is drawn. The vertices, vertex map, and mesh draw mode work together to determine what exactly is displayed on the screen.

If no vertex map has been set previously via [[Mesh:setVertexMap]], then this function will return [[nil]] in LÖVE [[0.10.0]]+, or an empty table in [[0.9.2]] and older.

== Function ==
=== Synopsis ===
<source lang="lua">
map = Mesh:getVertexMap( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|table|map|A table containing the list of vertex indices used when drawing.}}
== See Also ==
* [[parent::Mesh]]
* [[Mesh:setVertexMap]]
[[Category:Functions]]
{{#set:Description=Gets the vertex map for the Mesh.}}
== Other Languages ==
{{i18n|Mesh:getVertexMap}}