
| Graph axis blend color color bar fog freetype light line material node point plot polygon render scene stencil texcoord text texture vertex Utility array bio hdf make math netcdf Auxiliary curl expact sqlite window |
zeVertexUse .new("vertex") to create the object. It is used to hold coordinates of vertices and can be shared by multiple shape objects. :add(x, y, z) Adds a vertex (x, y, z) to the object. :add{x, y, z, ...} Adds data to the object through a Lua table, which should contain x-, y-, and z- coordinates. :add(array) Transfers data in the array to the vertex object. The number of vectors of the array must be 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) Returns x, y, and z at the index. The first dataset is at index 0. :get(arr) Transfers vertex data to the array. The array must have three vectors and the same number of records as the vertex object. :min() Returns the minimums of x, y, and z. :max() Returns the maximums of x, y, and z. :translate(dx, dy, dz) Adds offset dx, dy, dz to x, y, and z. :scale(sx, sy, sz) Scale x, y, and z by factors of sx, sy, and sz. :rotatex(angle) Rotation transform about x-axis for x, y, and z. :rotatey(angle) Rotation transform about y-axis for x, y, and z. :rotatez(angle) Rotation transform about y-axis for x, y, and z. :size() Returns the number of vertices the object contains. |