--- ray/src/common/face.h 1991/11/12 16:54:27 2.1 +++ ray/src/common/face.h 2003/06/06 16:38:47 2.4 @@ -1,13 +1,15 @@ -/* Copyright (c) 1986 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: face.h,v 2.4 2003/06/06 16:38:47 schorsch Exp $ */ /* * face.h - header for routines using polygonal faces. - * - * 8/30/85 */ +#ifndef _RAD_FACE_H_ +#define _RAD_FACE_H_ +#ifdef __cplusplus +extern "C" { +#endif +#include "copyright.h" + #define VERTEX(f,n) ((f)->va + 3*(n)) typedef struct { /* a polygonal face */ @@ -19,4 +21,14 @@ typedef struct { /* a polygonal face */ short ax; /* axis closest to normal */ } FACE; -extern FACE *getface(); + +extern FACE *getface(OBJREC *o); +extern void freeface(OBJREC *o); +extern int inface(FVECT p, FACE *f); + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_FACE_H_ */ +