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

Comparing ray/src/common/cone.c (file contents):
Revision 1.1 by greg, Thu Feb 2 10:34:30 1989 UTC vs.
Revision 1.3 by greg, Sat Jan 19 13:43:28 1991 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1991 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 68 | Line 68 | int  getxf;
68                  } else {
69                          if (o->oargs.nfargs != 8)
70                                  goto argcerr;
71 <                        if (co->ca[6] < 0.0 || co->ca[7] < 0.0)
71 >                        if (co->ca[6] < -FTINY || co->ca[7] < -FTINY)
72                                  goto raderr;
73 +                        if (co->ca[6] < 0.0) co->ca[6] = 0.0;
74 +                        if (co->ca[7] < 0.0) co->ca[7] = 0.0;
75                          if (fabs(co->ca[7] - co->ca[6]) <= FTINY)
76                                  goto raderr;
77                          co->r0 = 6;
# Line 104 | Line 106 | int  getxf;
106                          co->sl = co->al;
107                  }
108                  co->tm = NULL;
109 <                (CONE *)o->os = co;
109 >                o->os = (char *)co;
110          }
111          if (getxf && co->tm == NULL)
112                  conexform(co);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines