17 |
|
|
18 |
|
#define MAXCSET ((MAXSET+1)*2-1) /* maximum check set size */ |
19 |
|
|
20 |
< |
unsigned long raynum = 0; /* next unique ray number */ |
21 |
< |
unsigned long nrays = 0; /* number of calls to localhit */ |
20 |
> |
RNUMBER raynum = 0; /* next unique ray number */ |
21 |
> |
RNUMBER nrays = 0; /* number of calls to localhit */ |
22 |
|
|
23 |
|
static RREAL Lambfa[5] = {PI, PI, PI, 0.0, 0.0}; |
24 |
|
OBJREC Lamb = { |
512 |
|
else if (r->rdir[i] < -1e-7) |
513 |
|
sflags |= 0x10 << i; |
514 |
|
} |
515 |
< |
if (sflags == 0) |
516 |
< |
error(CONSISTENCY, "zero ray direction in localhit"); |
515 |
> |
if (!sflags) { |
516 |
> |
error(WARNING, "zero ray direction in localhit"); |
517 |
> |
return(0); |
518 |
> |
} |
519 |
|
/* start off assuming nothing hit */ |
520 |
|
if (r->rmax > FTINY) { /* except aft plane if one */ |
521 |
|
r->ro = &Aftplane; |