PEXtSphere(3PEXt)

NAME
PEXtSphere — create a sphere using 400 predefined FILL AREA 3 WITH DATA structure elements

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

void PEXtSphere (radius)
    Pfloat    radius;

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

DESCRIPTION
This convenience procedure creates an approximation to a sphere, centered about the origin, by using 400 precomputed polygonal patches with vertex normals. The structure elements making the sphere are inserted into the currently open structure. A uniform scaling is applied to the sphere to scale it accordingly.

RETURN VALUE
None

BUGS
There should be a way to specify the sphere's center.

The approximation is expensive for spheres that are small in screen area.

A sphere should be a special case of an ellipsoid.

The routine depends on the edit mode being set to PINSERT.

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