home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / NEWS / RADIANCE / SRC / COMMON / FACE.H < prev    next >
C/C++ Source or Header  |  1993-10-07  |  594b  |  23 lines

  1. /* Copyright (c) 1986 Regents of the University of California */
  2.  
  3. /* SCCSid "@(#)face.h 2.1 11/12/91 LBL" */
  4.  
  5. /*
  6.  *  face.h - header for routines using polygonal faces.
  7.  *
  8.  *     8/30/85
  9.  */
  10.  
  11. #define  VERTEX(f,n)    ((f)->va + 3*(n))
  12.  
  13. typedef struct {    /* a polygonal face */
  14.     FVECT  norm;        /* the plane's unit normal */
  15.     FLOAT  offset;        /* plane equation:  DOT(norm, v) == offset */
  16.     FLOAT  area;        /* area of face */
  17.     FLOAT  *va;        /* vertex array (o->oargs.farg) */
  18.     short  nv;        /* # of vertices */
  19.     short  ax;        /* axis closest to normal */
  20. } FACE;
  21.  
  22. extern FACE  *getface();
  23.