home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
NEWS
/
RADIANCE
/
SRC
/
COMMON
/
FACE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-07
|
594b
|
23 lines
/* Copyright (c) 1986 Regents of the University of California */
/* SCCSid "@(#)face.h 2.1 11/12/91 LBL" */
/*
* face.h - header for routines using polygonal faces.
*
* 8/30/85
*/
#define VERTEX(f,n) ((f)->va + 3*(n))
typedef struct { /* a polygonal face */
FVECT norm; /* the plane's unit normal */
FLOAT offset; /* plane equation: DOT(norm, v) == offset */
FLOAT area; /* area of face */
FLOAT *va; /* vertex array (o->oargs.farg) */
short nv; /* # of vertices */
short ax; /* axis closest to normal */
} FACE;
extern FACE *getface();