PEXtCylinder(3PEXt)

NAME
PEXtCylinder — create a cylinder using FILL AREA 3 WITH DATA structure elements

SYNOPSIS
#include <PEXt/PEXt.h>
#include <PEXt/Primitive.h>

void PEXtCylinder (num_strips, height, radius)
    Pint    num_strips;
    Pfloat    height;
    Pfloat    radius;

  Required PHIGS Operating States
(PHOP, *, STOP, *)

DESCRIPTION
PEXtCylinder creates a cylinder, centered on the origin, of the given height using num_strips FILL AREA 3 WITH DATA structure elements. The axis of the cylinder is coincident with the Z axis in world coordinates. Since it uses num_strips structure elements to build the cylinder, it requires a current edit mode of PINSERT; otherwise only the last strip of the cylinder will remain, having replaced the previous elements. The cylinder is constructed with vertex normals computed from the cylinder surface.

RETURN VALUE
None

BUGS
The routine should use a quadrilateral mesh, or a set of fill area sets to generate the cylinder in a single structure element.

There should be a way of specifying the orientation of the cylinder.

AUTHOR
Rich Thomson <rthomson@dsd.es.com>
Design Systems Division
Evans & Sutherland Computer Corporation