SippTeapot Command

SippTeapot resolution shaderhandle [texture]

This function creates a model of the famous "Utah Teapot" as a TSIPP object. The model is built as a combination of four subobjects: the body, the lid, the handle and the spout. These subobjects are also available as separate primitive objects.

The body and the lid are created as Bezier rotation curves while the handle and the spout are created as sets of four Bezier patches each. Texture coordinates and resolution are assigned in the same way as for these primitives.

Resolution is the number of polygons to tessellate the surface into. Each rotational surface will be tessellated into `resolution x 4*resolution' polygons, `resolution' vertices along the curve and `4*resolution' vertices around the perimeter. The teapot body is built from three rotational surfaces and the lid from two.

Patches will be tessellated into `resolution x resolution' polygons. Both the handle and the spout are built from four patches.

The surfaces are shaded with the algorithm and surface parameters specified by shaderhandle.

Texture is the texture mapping algorithm to use for the object. Only NATURAL or WORLD maybe specified. Optional, WORLD is the default.

The following commands are available for defining subobject of a teapot. The arguments are the same as for the SippTeapot command.