1 |
– |
/* Copyright (c) 1991 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_func.c - routine for procedural textures. |
9 |
– |
* |
10 |
– |
* 4/8/86 |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "copyright.h" |
9 |
+ |
|
10 |
|
#include "ray.h" |
11 |
|
|
12 |
|
#include "func.h" |
44 |
|
errno = 0; |
45 |
|
for (i = 0; i < 3; i++) { |
46 |
|
disp[i] = evalue(mf->ep[i]); |
47 |
< |
if (errno) { |
47 |
> |
if (errno == EDOM || errno == ERANGE) { |
48 |
|
objerror(m, WARNING, "compute error"); |
49 |
|
return(0); |
50 |
|
} |