1 |
< |
/* Copyright (c) 1986 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1990 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
49 |
|
for (i = 0; i < 3; i++) |
50 |
|
pisect[i] = r->rorg[i] + r->rdir[i]*t; |
51 |
|
|
52 |
< |
if (inface(pisect, f)) { /* ray intersects face? */ |
52 |
> |
if (!inface(pisect, f)) /* ray intersects face? */ |
53 |
> |
return(0); |
54 |
|
|
55 |
< |
r->ro = o; |
56 |
< |
r->rot = t; |
57 |
< |
VCOPY(r->rop, pisect); |
58 |
< |
VCOPY(r->ron, f->norm); |
59 |
< |
r->rod = rdot; |
60 |
< |
} |
55 |
> |
r->ro = o; |
56 |
> |
r->rot = t; |
57 |
> |
VCOPY(r->rop, pisect); |
58 |
> |
VCOPY(r->ron, f->norm); |
59 |
> |
r->rod = rdot; |
60 |
> |
r->rox = NULL; |
61 |
> |
|
62 |
|
return(1); /* hit */ |
63 |
|
} |