sphgnpolys(3L)

sphgnpolys - return the number of polygons for the current set of sphere attributes.

As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.

NAME
     sphgnpolys - return the number of polygons for the current set of sphere
     attributes.

C SPECIFICATION
     #include <gl/sphere.h>

     int sphgnpolys()

PARAMETERS
     none

FUNCTION RETURN VALUE
     The return value is the number of polygons in current sphere.

DESCRIPTION
     sphgnpolys returns the number of polygons: triangles, quads, meshed-tris,
     or stripped-quads, in the current sphere for the set of sphere attributes
     currently selected by calls to sphmode. If the current primitive is not
     SPH_POLY or SPH_MESH, then the number returned is that which corresponds
     to the primitve SPH_POLY.

SEE ALSO
     libsphere, sphdraw, sphfree, sphmode, sphobj, sphrotmatrix