Behaviours: object3d.
The module implementing a 3D box.
A box is created using the
function oject3d:new/1, passing the proper
#object3d{}
record, whose fields have the following meaning:
type, must be set equal to atom box.name, a name assigned to the process handling
this box (set it only if you want to register the process).position, a #vector{} representing the
(x,y,z) position of the center of the box (use the
?VECTOR(X,Y,Z) macro defined in geometry.hrl).
axis, a #vector{} representing the orientation
of the box axis. The default is along the z axis.up, a #vector{} representing the orientation
of the up vector. The default is along the y axis.color, the box's color, expressed in RGB using
macro ?RGB(R,G,B) defined in geometry.hrl.
width, box's width.height, box's height.depth, box's depth.Example:
object3d:new (#object3d { type = box,
name = mybox,
width = 0.1,
height = 0.75,
depth = 21.1,
position = ?VECTOR (0.0, -0.1, 0.6),
axis = ?VECTOR (0.0, 1.0, 1.0),
color = ?RGB(1.0, 1.0, 0.0)}).
Generated by EDoc, Nov 21 2007, 10:13:23.