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

Comparing ray/src/gen/genworm.c (file contents):
Revision 2.4 by greg, Sat Feb 22 02:07:23 2003 UTC vs.
Revision 2.5 by schorsch, Mon Jul 21 22:30:18 2003 UTC

# Line 76 | Line 76 | char  *argv[];
76                  p[1] = funvalue(YNAME, 1, &t);
77                  p[2] = funvalue(ZNAME, 1, &t);
78                  r = funvalue(RNAME, 1, &t);
79 <                if (i)
79 >                if (i) {
80                          if (lastr <= r+FTINY && lastr >= r-FTINY) {
81                                  printf("\n%s cylinder %s.c%d\n",
82                                                  argv[1], argv[2], i);
# Line 103 | Line 103 | char  *argv[];
103                                  f = f <= 0.0 ? 0.0 : sqrt(f);
104                                  printf("%18.12g %18.12g\n", f*lastr, f*r);
105                          }
106 +                }
107                  printf("\n%s sphere %s.s%d\n", argv[1], argv[2], i);
108                  printf("0\n0\n4 %18.12g %18.12g %18.12g %18.12g\n",
109                                  p[0], p[1], p[2], r);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines