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.2 by greg, Tue Feb 21 14:39:51 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines