Difference between revisions of "Mesh:setVertex"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2012.09<br/>
'''<translate>Available since</translate>:''' Gideros 2012.09<br/>
+
'''Class:''' [[Mesh]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Mesh|Mesh]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Sets a vertex in a vertex array. Indices start from 1. If the vertex array is not large enough, it is automatically expanded.
Sets a vertex at vertex array. Indices are start from 1. If the vertex array is not large enough, it&#039;s expanded automatically.<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
Mesh:setVertex(i,x,y)
+
Mesh:setVertex(i,x,y)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''i''': (number) <translate>index</translate> <br/>
+
=== Parameters ===
'''x''': (number) <translate>x coordinate</translate> <br/>
+
'''i''': (number) index<br/>
'''y''': (number) <translate>y coordinate</translate> <br/>
+
'''x''': (number) x coordinate<br/>
=== <translate>Examples</translate> ===
+
'''y''': (number) y coordinate<br/>
'''Example'''<br/>
+
 
<source lang="lua">-- set the first 3 vertex positions as (100, 100), (150, 100) and (100, 150).
+
=== Examples ===
 +
<source lang="lua">
 +
-- set the first 3 vertex positions as (100, 100), (150, 100) and (100, 150)
 
mesh:setVertex(1, 100, 100)
 
mesh:setVertex(1, 100, 100)
 
mesh:setVertex(2, 150, 100)
 
mesh:setVertex(2, 150, 100)
mesh:setVertex(3, 100, 150)</source>
+
mesh:setVertex(3, 100, 150)
 +
</source>
  
 
{{Mesh}}
 
{{Mesh}}

Revision as of 04:31, 18 September 2022