| 1 |
< |
/* Copyright (c) 1993 Regents of the University of California */ |
| 1 |
> |
/* Copyright (c) 1994 Regents of the University of California */ |
| 2 |
|
|
| 3 |
|
#ifndef lint |
| 4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
| 186 |
|
if (fillsamp == 1) |
| 187 |
|
fillo &= ~F_BACK; |
| 188 |
|
/* set view */ |
| 189 |
< |
if (err = setview(&ourview)) { |
| 189 |
> |
if (ourview.vaft > FTINY) |
| 190 |
> |
err = "no aft clipping plane allowed"; |
| 191 |
> |
else |
| 192 |
> |
err = setview(&ourview); |
| 193 |
> |
if (err != NULL) { |
| 194 |
|
fprintf(stderr, "%s: %s\n", progname, err); |
| 195 |
|
exit(1); |
| 196 |
|
} |
| 498 |
|
pos[1] += .5 - ourview.voff; |
| 499 |
|
return(0); |
| 500 |
|
} |
| 501 |
< |
if (viewray(pt, direc, &theirview, pos[0], pos[1]) < 0) |
| 501 |
> |
if (viewray(pt, direc, &theirview, pos[0], pos[1]) < -FTINY) |
| 502 |
|
return(-1); |
| 503 |
|
pt[0] += direc[0]*pos[2]; |
| 504 |
|
pt[1] += direc[1]*pos[2]; |