![]() |
| home | graph lib | utility lib | custom lib | auxiliary lib | tutorials | |
|
zeVertexUse .new("vertex") to create the object. It is used to hold coordinates of vertices. It can be shared by multiple shape objects. :add(x, y, z) x, y, z - numbers. Adds a vertex (x, y, z) to the object. :add(table) table - a Lua table containing only numbers. Adds data to the object using Lua table, which should x-, y-, and z- coordinates. :add(array) array - a zeArray object of double floating type. Transfers data in the array to the vertex object. The number of vectors of the array must larger than or equal to three. Vertex x-, y- and z- data should be in the first to the third vectors. :clear() Clears data in the object. :get(idx) idx - the index number. Returns x, y, and z at the index. The first dataset is at index 0. :min() Returns the minimums of x, y, and z. :max() Returns the maximums of x, y, and z. :size() Returns the number of vertices the object contains.
|