{{newin|[[0.9.1]]|091|type=function}}
Gets the range of vertices used when drawing the Mesh.

== Function ==
=== Synopsis ===
<source lang="lua">
min, max = Mesh:getDrawRange( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|min (nil)|The index of the first vertex used when drawing, or the index of the first value in the vertex map used if one is set for this Mesh.}}
{{param|number|max (nil)|The index of the last vertex used when drawing, or the index of the last value in the vertex map used if one is set for this Mesh.}}
=== Notes ===
If the Mesh's draw range has not been set previously with [[Mesh:setDrawRange]], this function will return nil.

== See Also ==
* [[parent::Mesh]]
* [[Mesh:setDrawRange]]
[[Category:Functions]]
{{#set:Description=Gets the range of vertices used when drawing the Mesh.}}
== Other Languages ==
{{i18n|Mesh:getDrawRange}}