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

Comparing ray/src/common/rglsurf.c (file contents):
Revision 3.11 by schorsch, Fri Nov 14 17:22:06 2003 UTC vs.
Revision 3.12 by greg, Tue Mar 30 20:40:03 2004 UTC

# Line 253 | Line 253 | register OBJREC *o;
253          } else if (!iscyl && o->oargs.farg[7] < -FTINY)
254                  objerror(o, USER, "illegal radii");
255          if (o->oargs.farg[6] <= FTINY && (iscyl || o->oargs.farg[7] <= FTINY))
256 <                return; /* XXX we should return a value here */
256 >                return(0);
257          if (!iscyl) {
258                  if (o->oargs.farg[6] < 0.)      /* complains for tiny neg's */
259                          o->oargs.farg[6] = 0.;
# Line 262 | Line 262 | register OBJREC *o;
262          }
263          h = sqrt(dist2(o->oargs.farg,o->oargs.farg+3));
264          if (h <= FTINY)
265 <                return; /* XXX we should return a value here */
265 >                return(0);
266          cent[0] = .5*(o->oargs.farg[0] + o->oargs.farg[3]);
267          cent[1] = .5*(o->oargs.farg[1] + o->oargs.farg[4]);
268          cent[2] = .5*(o->oargs.farg[2] + o->oargs.farg[5]);
# Line 315 | Line 315 | register OBJREC        *o;
315          if (o->oargs.farg[6] < 0.)              /* complains for tiny neg's */
316                  o->oargs.farg[6] = 0.;
317          if (o->oargs.farg[7] - o->oargs.farg[6] <= FTINY)
318 <                return; /* XXX we should return a value here */
318 >                return(0);
319          h = VLEN(o->oargs.farg+3);
320          if (h <= FTINY)
321 <                return; /* XXX we should return a value here */
321 >                return(0);
322          if (dolights)
323                  doflatsrc((MATREC *)o->os, o->oargs.farg, o->oargs.farg+3,
324                                  PI*(o->oargs.farg[7]*o->oargs.farg[7] -

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines