OBJ3D
Prev | Chapter 3. XML elements and attributes | Next

## OBJ3D

### Description

Level: 3rd or 4th

General objects such as Cones, Cubes, Cylinders, and Squares. These objects can be used to generate a shape such as arrows( cone + cylinder ).

### Parent Elements

GLOBAL, LOCAL, SCENE

### Child Elements

nothing

### Attributes

See also the common attributes for primitives. Most options such as radius, color are described there.

type (type:String) = "cone"

  Object type. Available types are "cone", "cube", "cylinder", and "square".

pos (type:Point3D)

  Position of the object. REQUIRED if it is the child element of a SCENE. In other cases, this attribute is simply ignored.

dir (type:Point3D) = null

  Direction of the object. If the value is not null, the object looks towards the specified direction.

x (type:Float) = "0.0", , y (type:Float) = "0.0", , z (type:Float) = "0.0"

  The meaning of these parameters depends on the object type. For "cube", these three values are used as the box length. For "cone" and "cylinder", "x" is used as the radius of the bottom face and "y" is used as the height of the cone/cylinder. For "square", "x" and "y" are used as the lengths of the square. In case of "cone" and "cylinder", "radius" can also be used as "x" but attribute "x" overwrites the "radius" setting.

Prev | Up | Next
COIL | Home | LABEL