163 |
|
d = normalize(direc); |
164 |
|
if (d == 0.0) { /* zero ==> flush */ |
165 |
|
if (--nextflush <= 0 || !vcount) { |
166 |
< |
if (nproc > 1 && ray_fifo_flush() < 0) |
166 |
> |
if (ray_pnprocs > 1 && ray_fifo_flush() < 0) |
167 |
|
error(USER, "child(ren) died"); |
168 |
|
bogusray(); |
169 |
|
fflush(stdout); |
175 |
|
rtcompute(orig, direc, lim_dist ? d : 0.0); |
176 |
|
/* flush if time */ |
177 |
|
if (!--nextflush) { |
178 |
< |
if (nproc > 1 && ray_fifo_flush() < 0) |
178 |
> |
if (ray_pnprocs > 1 && ray_fifo_flush() < 0) |
179 |
|
error(USER, "child(ren) died"); |
180 |
|
fflush(stdout); |
181 |
|
nextflush = hresolu; |
186 |
|
if (vcount && !--vcount) /* check for end */ |
187 |
|
break; |
188 |
|
} |
189 |
< |
if (nproc > 1) { /* clean up children */ |
189 |
> |
if (ray_pnprocs > 1) { /* clean up children */ |
190 |
|
if (ray_fifo_flush() < 0) |
191 |
|
error(USER, "unable to complete processing"); |
192 |
|
ray_pclose(0); |
343 |
|
) |
344 |
|
{ |
345 |
|
void (*old_revf)(RAY *) = r->revf; |
346 |
< |
|
347 |
< |
r->rot = 1e-5; /* pretend we hit surface */ |
346 |
> |
/* pretend we hit surface */ |
347 |
> |
r->rxt = r->rmt = r->rot = 1e-5; |
348 |
|
VSUM(r->rop, r->rorg, r->rdir, r->rot); |
349 |
|
r->ron[0] = -r->rdir[0]; |
350 |
|
r->ron[1] = -r->rdir[1]; |