home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / lib / gprim / quad / quadsphere.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-17  |  336 b   |  16 lines

  1. #include "geom.h"
  2. #include "create.h"
  3. #include "quadP.h"
  4.  
  5. Geom *QuadSphere(quad, T, space)
  6.      Quad *quad;
  7.      Transform T;
  8.      int space;
  9. {
  10.   Geom *sphere;
  11.   sphere = GeomCreate("sphere", CR_ENCOMPASS_POINTS, quad->p,
  12.               CR_NENCOMPASS_POINTS, quad->maxquad * 4,
  13.               CR_AXIS, T, CR_SPACE, space, CR_END);
  14.   return sphere;
  15. }
  16.