SippBezierFile Command

SippBezierFile fileid resolution shaderhandle [texture]

Read a file specified by fileid, containing descriptions of a set of Bezier patches or Bezier curves. The surface is shaded with the algorithm and surface parameters specified by shaderhandle. See the sipp primitives manual page for a description of this file format. The SippBezierCurve and SippBezierPatch commands are the preferred method of creating Bezier surfaces, this procedure is provided for compatibility with existing SIPP data files.

If the file contains descriptions of patches, these patches will be tesselated into resolution by resolution polygons and installed in a sipp object as one surface.

If the file contains descriptions of curves, a rotational surface will be created by rotating these curves about the y-axis. The resulting surface will be tesselated into polygons and installed in a sipp object as one surface.

Texture is the texture mapping algorithm to use for the object. The texture coordinates are a bit special for the Bezier patches. CYLINDRICAL and SPHERICAL coordinates are not applicable, if they are specified, SIPP will use NATURAL anyway. The NATURAL mapping is a two dimensional mapping using the surface parameters u and v, see figure below. Note that these parameters range from 0 to 1 within each patch! Optional, WORLD is the default.

An object handle that references the new object is returned.