ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/mx_func.c
(Generate patch)

Comparing ray/src/rt/mx_func.c (file contents):
Revision 2.4 by gwlarson, Mon Aug 10 18:35:14 1998 UTC vs.
Revision 2.8 by schorsch, Tue Mar 30 16:13:01 2004 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1998 Silicon Graphics, Inc. */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ SGI";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  mx_func.c - routine for mixture functions.
9 *
10 *     11/2/88
6   */
7  
8 < #include  "ray.h"
8 > #include "copyright.h"
9  
10 + #include  "ray.h"
11   #include  "func.h"
12 + #include  "rtotypes.h"
13  
14   /*
15   *      A mixture function is specified:
# Line 29 | Line 26 | static char SCCSid[] = "$SunId$ SGI";
26   */
27  
28  
29 < mx_func(m, r)                   /* compute mixture function */
30 < register OBJREC  *m;
31 < RAY  *r;
29 > extern int
30 > mx_func(                        /* compute mixture function */
31 >        register OBJREC  *m,
32 >        RAY  *r
33 > )
34   {
35          OBJECT  obj;
36          register int  i;
# Line 54 | Line 53 | RAY  *r;
53          setfunc(m, r);
54          errno = 0;
55          coef = evalue(mf->ep[0]);
56 <        if (errno) {
56 >        if (errno == EDOM || errno == ERANGE) {
57                  objerror(m, WARNING, "compute error");
58                  return(0);
59          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines