Module compound

The module implementing a compound object, that is a rigid object which is composed of other objects.

Behaviours: object3d.

Description

The module implementing a compound object, that is a rigid object which is composed of other objects.

A compound is created using the function oject3d:new/1, passing the proper #object3d{} record, whose fields have the following meaning:

Sub-object's position and axis are considered relative with respect to the compound.

Example:

   C1 = #object3d { type = sphere,
                    radius = 0.095,
                    position = ?VECTOR (X1, Y1, 0),
                    color = ?RGB (1.0, 0.0, 0.0)},
 
   C2 = #object3d { type = pipe,
                    size = 0.1,
                    radius = 0.41,
                    position = ?VECTOR (0.0, 0.0, -0.05)},
 
   object3d:new (#object3d { type = compound,
                             name = mycompound,
                             position = ?VECTOR (0.0, -0.1, 0.6),
                             objects = [C1, C2] }).
  

Generated by EDoc, Nov 21 2007, 10:13:23.