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.6 by greg, Thu Mar 27 04:16:33 2003 UTC vs.
Revision 3.7 by greg, Wed Apr 23 02:28:06 2003 UTC

# Line 142 | Line 142 | register OBJREC        *o;
142                  objerror(o, USER, "bad # real arguments");
143          area = polyarea(cent, norm, o->oargs.nfargs/3, (FVECT *)o->oargs.farg);
144          if (area <= FTINY)
145 <                return;
145 >                return(0);
146          if (dolights)                                   /* check for source */
147                  doflatsrc((MATREC *)o->os, cent, norm, area);
148          setmaterial((MATREC *)o->os, cent, 1);          /* set material */
# Line 177 | Line 177 | register OBJREC        *o;
177                                          (GLdouble)o->oargs.farg[3*i+1],
178                                          (GLdouble)o->oargs.farg[3*i+2]);
179          }
180 +        return(0);
181   }
182  
183  
# Line 207 | Line 208 | register OBJREC        *o;
208                  o->otype = o->otype==OBJ_SPHERE ? OBJ_BUBBLE : OBJ_SPHERE;
209                  o->oargs.farg[3] = -o->oargs.farg[3];
210          } else if (o->oargs.farg[3] <= FTINY)
211 <                return;
211 >                return(0);
212          if (dolights)
213                  dosphsrc((MATREC *)o->os, o->oargs.farg,
214                                  PI*o->oargs.farg[3]*o->oargs.farg[3]);
# Line 223 | Line 224 | register OBJREC        *o;
224                          (GLdouble)o->oargs.farg[2]);
225          gluSphere(gluqo, (GLdouble)o->oargs.farg[3], NSLICES, NSTACKS);
226          glPopMatrix();
227 +        return(0);
228   }
229  
230  
# Line 286 | Line 288 | register OBJREC *o;
288          gluCylinder(gluqo, o->oargs.farg[6], o->oargs.farg[iscyl ? 6 : 7],
289                          h, NSLICES, 1);
290          glPopMatrix();
291 +        return(0);
292   }
293  
294  
# Line 335 | Line 338 | register OBJREC        *o;
338                  glRotated(d, (GLdouble)x1, (GLdouble)y1, 0.);
339          gluDisk(gluqo, o->oargs.farg[6], o->oargs.farg[7], NSLICES, 1);
340          glPopMatrix();
341 +        return(0);
342   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines