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

zePoint

Use .new("point") to create the object. It is one of the shape objects that the OpenGL display list is implemented. Rendering of the point object is compiled into the display list if activated through the render. The order of calling translate, scale, and rotate functions is important.

: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 transformations 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.

:update()

Forces updating in the rendering of the object.

:set(table)

table - a Lua table.

Sets point 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 point color to use when no vertex color object is used or the vertex color object contains no data.
size size Number (>0) Sets the point size, which may be confined within 10 depending on the OpenGL implementation.
smooth flag Boolean If true, produces round (antialias) point. Blending should be used with this option.
enable flag Boolean Enable (default) and disable the object
vertex obj zeVertex Sets the vertex object.
vertex_normal obj zeVertex Sets the vertex normal object.
vertex_color obj zeColor Sets the vertex color object.