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

Comparing ray/src/gen/gensurf.c (file contents):
Revision 1.8 by greg, Sat May 26 19:44:40 1990 UTC vs.
Revision 1.10 by greg, Fri Jul 20 14:35:59 1990 UTC

# Line 46 | Line 46 | main(argc, argv)
46   int  argc;
47   char  *argv[];
48   {
49 +        extern long     eclock;
50          POINT  *row0, *row1, *row2, *rp;
51          int  i, j, m, n;
52          char  stmp[256];
# Line 60 | Line 61 | char  *argv[];
61  
62          for (i = 8; i < argc; i++)
63                  if (!strcmp(argv[i], "-e"))
64 <                        scompile(NULL, argv[++i]);
64 >                        scompile(argv[++i], NULL, 0);
65                  else if (!strcmp(argv[i], "-f"))
66                          fcompile(argv[++i]);
67                  else if (!strcmp(argv[i], "-s"))
# Line 71 | Line 72 | char  *argv[];
72          modname = argv[1];
73          surfname = argv[2];
74          sprintf(stmp, "%s(s,t)=%s;", XNAME, argv[3]);
75 <        scompile(NULL, stmp);
75 >        scompile(stmp, NULL, 0);
76          sprintf(stmp, "%s(s,t)=%s;", YNAME, argv[4]);
77 <        scompile(NULL, stmp);
77 >        scompile(stmp, NULL, 0);
78          sprintf(stmp, "%s(s,t)=%s;", ZNAME, argv[5]);
79 <        scompile(NULL, stmp);
79 >        scompile(stmp, NULL, 0);
80          m = atoi(argv[6]);
81          n = atoi(argv[7]);
82          if (m <= 0 || n <= 0)
# Line 91 | Line 92 | char  *argv[];
92          row0++; row1++; row2++;
93                                                  /* print header */
94          printhead(argc, argv);
95 +        eclock = 0;
96                                                  /* initialize */
97          comprow(-1.0/m, row0, n);
98          comprow(0.0, row1, n);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines