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

Comparing ray/src/cv/obj2rad.c (file contents):
Revision 2.8 by greg, Tue Jun 14 14:30:38 1994 UTC vs.
Revision 2.9 by greg, Wed Jun 15 09:51:31 1994 UTC

# Line 130 | Line 130 | char   *argv[];
130          }
131          exit(0);
132   userr:
133 <        fprintf(stderr, "Usage: %s [-o obj][-m mapping][-n] [file.obj]\n",
133 >        fprintf(stderr, "Usage: %s [-o obj][-m mapping][-n][-f] [file.obj]\n",
134                          argv[0]);
135          exit(1);
136   }
# Line 440 | Line 440 | register char  *vs;
440                  if (vi[0]-- > nvs)
441                          return(0);
442          } else if (vi[0] < 0) {
443 <                vi[0] = nvs + vi[0];
443 >                vi[0] += nvs;
444                  if (vi[0] < 0)
445                          return(0);
446          } else
# Line 454 | Line 454 | register char  *vs;
454                  if (vi[1]-- > nvts)
455                          return(0);
456          } else if (vi[1] < 0) {
457 <                vi[1] = nvts + vi[1];
457 >                vi[1] += nvts;
458                  if (vi[1] < 0)
459                          return(0);
460          } else
# Line 468 | Line 468 | register char  *vs;
468                  if (vi[2]-- > nvns)
469                          return(0);
470          } else if (vi[2] < 0) {
471 <                vi[2] = nvns + vi[2];
471 >                vi[2] += nvns;
472                  if (vi[2] < 0)
473                          return(0);
474          } else
# Line 477 | Line 477 | register char  *vs;
477   }
478  
479  
480 < nonplanar(ac, av)                       /* are vertices are non-planar? */
480 > nonplanar(ac, av)                       /* are vertices non-planar? */
481   register int    ac;
482   register char   **av;
483   {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines