{{newin (日本語)|[[0.9.0 (日本語)|0.9.0]]|090|type=関数}}
Gets the properties of a vertex in the Mesh.

In versions prior to [[11.0]], color and byte component values were within the range of 0 to 255 instead of 0 to 1.
== 関数 ==
{{newin (日本語)|[[0.10.0 (日本語)|0.10.0]]|100|type=異形}}
=== 概要 ===
<source lang="lua">
attributecomponent, ... = Mesh:getVertex( index )
</source>
=== 引数 ===
{{param (日本語)|number|index|The one-based index of the vertex you want to retrieve the information for.}}
=== 返値 ===
{{param (日本語)|number|attributecomponent|The first component of the first vertex attribute in the specified vertex.}}
{{param (日本語)|number|...|Additional components of all vertex attributes in the specified vertex.}}
=== 注釈 ===
The values are returned in the same order as the vertex attributes in the Mesh's [[Mesh:getVertexFormat|vertex format]]. A standard Mesh that wasn't [[love.graphics.newMesh|created]] with a custom vertex format will return two position numbers, two texture coordinate numbers, and four color components: x, y, u, v, r, g, b, a.

== 関数 ==
Gets the vertex components of a Mesh that wasn't [[love.graphics.newMesh|created]] with a custom vertex format.
=== 概要 ===
<source lang="lua">
x, y, u, v, r, g, b, a = Mesh:getVertex( index )
</source>
=== 引数 ===
{{param (日本語)|number|index|The index of the vertex you want to retrieve the information for.}}
=== 返値 ===
{{param (日本語)|number|x|The position of the vertex on the x-axis.}}
{{param (日本語)|number|y|The position of the vertex on the y-axis.}}
{{param (日本語)|number|u|The horizontal component of the texture coordinate.}}
{{param (日本語)|number|v|The vertical component of the texture coordinate.}}
{{param (日本語)|number|r|The red component of the vertex's color.}}
{{param (日本語)|number|g|The green component of the vertex's color.}}
{{param (日本語)|number|b|The blue component of the vertex's color.}}
{{param (日本語)|number|a|The alpha component of the vertex's color.}}

== 関連 ==
* [[parent::Mesh (日本語)]]
* [[Mesh:setVertex (日本語)]]
* [[Mesh:getVertexCount (日本語)]]
* [[Mesh:getVertexAttribute (日本語)]]
* [[Mesh:getVertexFormat (日本語)]]
* [[love.graphics.newMesh (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Gets the properties of a vertex in the Mesh.}}

== そのほかの言語 ==
{{i18n (日本語)|Mesh:getVertex}}