1.2

| home | graph lib | utility lib | custom lib | auxiliary lib | tutorials |

   Axis
   Blend
   Color
   ColorBar
   Fog
   Freetype
   Light
   Line
   Material
   Node
   Point
   Plot
   Polygon
   Render
   Scene
   Stencil
   TexCoord
   Text
   Texture
   Vertex

zeNode

Use .new("node") to create the object. It can contain any zeGraph objects in the core library except for zeRender and zeScene. The order of callig translate, scale, and rotate functions are important.

:add(object[, object,...])

object - any graph object except zeRender and zeScene.

adds a number of objects to the node.

:clear()

Clears objects added to the node.

:rotatex(angle)
:rotatey(angle)
:rotatez(angle)

angle - rotation angle in degree.

These functions rotate the object around the x-, y- and z-axis, respectively. The order they are called is important.

:reset()

Resets the transformation to none.

:scale(xs, ys, zs)

xs, ys, zs - numbers.

Scales the object in x, y, and z direction for the factors of xs, ys, and zs.

:translate(dx, dy, dz)

dx, dy, dz - numbers.

Moves the object dx, dy, and dz away from the current position.

:set(table)

table - a Lua table.

Sets node properties. Valid key-value paris are listed in the table.

Key Value Type Remark
color {r, g, b, a} Numbers (0 to 1) in table Sets the default color for all object in the node.
open flag Boolean Sets the node as open or closed. In closed state, the node saves all the OpenGL attributes before process objects in it and restores the attributes after processing.
enable flag Boolean Enable (default) and disable the object