--- ray/src/rt/o_face.c 1991/11/12 17:09:17 2.1 +++ ray/src/rt/o_face.c 2004/03/30 16:13:01 2.5 @@ -1,23 +1,22 @@ -/* Copyright (c) 1990 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: o_face.c,v 2.5 2004/03/30 16:13:01 schorsch Exp $"; #endif - /* * o_face.c - compute ray intersection with faces. - * - * 8/29/85 */ -#include "ray.h" +#include "copyright.h" +#include "ray.h" #include "face.h" +#include "rtotypes.h" -o_face(o, r) /* compute intersection with polygonal face */ -OBJREC *o; -register RAY *r; +extern int +o_face( /* compute intersection with polygonal face */ + OBJREC *o, + register RAY *r +) { double rdot; /* direction . normal */ double t; /* distance to intersection */ @@ -57,6 +56,8 @@ register RAY *r; VCOPY(r->rop, pisect); VCOPY(r->ron, f->norm); r->rod = rdot; + r->pert[0] = r->pert[1] = r->pert[2] = 0.0; + r->uv[0] = r->uv[1] = 0.0; r->rox = NULL; return(1); /* hit */