1 |
– |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* t_data.c - routine for stored textures |
9 |
– |
* |
10 |
– |
* 6/4/86 |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "copyright.h" |
9 |
+ |
|
10 |
|
#include "ray.h" |
11 |
|
|
12 |
|
#include "data.h" |
52 |
|
errno = 0; |
53 |
|
for (i = 0; i < nv; i++) |
54 |
|
pt[i] = evalue(mf->ep[i]); |
55 |
< |
if (errno) |
55 |
> |
if (errno == EDOM || errno == ERANGE) |
56 |
|
goto computerr; |
57 |
|
dval[0] = datavalue(dp, pt); |
58 |
|
for (i = 1; i < 3; i++) { |
64 |
|
errno = 0; |
65 |
|
for (i = 0; i < 3; i++) |
66 |
|
disp[i] = funvalue(m->oargs.sarg[i], 3, dval); |
67 |
< |
if (errno) |
67 |
> |
if (errno == EDOM || errno == ERANGE) |
68 |
|
goto computerr; |
69 |
|
if (mf->f != &unitxf) |
70 |
|
multv3(disp, disp, mf->f->xfm); |