Satimage Previous
The GLUobject
Home Documentation SmileLab Scripting Graphic objects Graphic view View3D The GLUobject  
Introduction
A GLUTobject is an elementary 3D object which may be either a sphere, a cylinder or a disk.
Providing the GLUTobject with data
kind, point, radius, radius2, direction and height
You define a GLUTobject by specifying its kind and by supplying its position and dimensions as its point, radius, radius2, direction and height properties, depending of the kind (see Smile's Dictionnary).
Graphic options for the GLUTobject
slices and stacks
The slices and stacks properties define the complexity of the GLUTobject.
drawmode
You can have a GLUTobject drawn filled or wired or both filled and wired by setting its drawmode property to 1, 2 or 3.
pen width
The pen width property is only effective for GLUTobjects drawn wired. The pen width depends also of the view3D's resolution.
ambiant color, diffused color, specular color, emission color, ambiant pen color, diffused pen color, specular pen color, emission pen color and shininess
You can change the material color properties of the GLUTobjects by settings its following properties: ambiant color, diffused color, specular color, emission color, ambiant pen color, diffused pen color, specular pen color, emission pen color and shininess.
fill color and pen color are shortcuts to define both ambiant and diffused colors for filled and wired display.
Copyright ©2008 Paris, Satimage