--- ray/src/rt/o_cone.c 1989/02/02 10:41:31 1.1 +++ ray/src/rt/o_cone.c 2003/03/11 17:08:55 2.4 @@ -1,15 +1,12 @@ -/* Copyright (c) 1986 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: o_cone.c,v 2.4 2003/03/11 17:08:55 greg Exp $"; #endif - /* * o_cone.c - routine to determine ray intersection with cones. - * - * 2/13/86 */ +#include "copyright.h" + #include "ray.h" #include "otypes.h" @@ -86,6 +83,7 @@ register RAY *r; r->rop[i] = r->rorg[i] + r->rdir[i]*r->rot; VCOPY(r->ron, co->ad); r->rod = -rdx[2]; + r->rox = NULL; return(1); /* good */ } /* roots for cone, cup, cyl., tube */ @@ -129,6 +127,9 @@ register RAY *r; r->ron[i] = (co->al*r->ron[i] - c*co->ad[i]) /co->sl; r->rod = -DOT(r->rdir, r->ron); + r->pert[0] = r->pert[1] = r->pert[2] = 0.0; + r->uv[0] = r->uv[1] = 0.0; + r->rox = NULL; return(1); /* good */ } return(0);