##### Views

- Page
- Discussion
- View source
- History

# Mesh:getVertexMap

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

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 the default vertex map for the Mesh: {1, 2, 3, 4, ..., Mesh:getVertexCount()}.

## Function

### Synopsis

vertex_map = Mesh:getVertexMap( )

### Arguments

None.

### Returns

`table vertex_map`
  A table containing the list of vertex indices used when drawing.

## See Also

- Mesh
- Mesh:setVertexMap

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/Mesh:getVertexMap"
Categories: Templates | Functions

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties