--- ray/src/common/face.h 1991/10/23 12:19:26 1.3 +++ ray/src/common/face.h 2003/02/25 02:47:21 2.3 @@ -1,13 +1,10 @@ -/* Copyright (c) 1986 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: face.h,v 2.3 2003/02/25 02:47:21 greg Exp $ */ /* * face.h - header for routines using polygonal faces. - * - * 8/30/85 */ +#include "copyright.h" + #define VERTEX(f,n) ((f)->va + 3*(n)) typedef struct { /* a polygonal face */ @@ -19,4 +16,16 @@ typedef struct { /* a polygonal face */ short ax; /* axis closest to normal */ } FACE; +#ifdef NOPROTO + extern FACE *getface(); +extern void freeface(); +extern int inface(); + +#else + +extern FACE *getface(OBJREC *o); +extern void freeface(OBJREC *o); +extern int inface(FVECT p, FACE *f); + +#endif