SippCube Command

SippCube size shaderhandle [texture]

Create a cube with the side of length side. The surface is shaded with the algorithm and surface parameters specified by shaderhandle. The cube is centered about the origin. surface is the surface description used by shader() which is the shading function used when shading the cube.

Texture is the texture mapping algorithm to use for the object. The NATURAL texture mapping is similar to CYLINDRICAL but the `x' coordinate is not taken from projection on a cylinder but is evenly distributed around the perimeter. An odd thing in all the 2D mappings (all except WORLD) for the cube is that the top face will have texture coordinates (0.0, 1.0) while the bottom will get (0.0, 0.0). Optional, WORLD is the default.

An object handle that references the new object is returned.