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

Comparing ray/src/px/xshowtrace.c (file contents):
Revision 1.5 by greg, Fri May 3 10:22:02 1991 UTC vs.
Revision 1.7 by greg, Mon Nov 11 14:01:49 1991 UTC

# Line 1 | Line 1
1 + /* Copyright (c) 1991 Regents of the University of California */
2 +
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
5   #endif
# Line 14 | Line 16 | static char SCCSid[] = "$SunId$ LBL";
16  
17   #define MAXDEPTH        32              /* ridiculous ray tree depth */
18  
19 < char    rtcom[] = "rtrace -h -otp -fa -x 1";
20 < char    xicom[] = "x11image -f";
19 > char    rtcom[] = "rtrace -h- -otp -fa -x 1";
20 > char    xicom[] = "ximage";
21  
22   VIEW    ourview = STDVIEW;              /* view for picture */
23   int     xres, yres;
# Line 29 | Line 31 | FILE   *pin;                           /* input stream */
31   Display *theDisplay = NULL;             /* connection to server */
32  
33   struct node {                           /* ray tree node */
34 <        double  ipt[2];
34 >        FVECT   ipt;
35          struct node     *sister;
36          struct node     *daughter;
37   };
# Line 151 | Line 153 | struct node    *tp;
153  
154  
155   strtoipt(ipt, str)              /* convert string x y z to image point */
156 < double  ipt[2];
156 > FVECT   ipt;
157   char    *str;
158   {
159          FVECT   pt;
160  
161          if (sscanf(str, "%lf %lf %lf", &pt[0], &pt[1], &pt[2]) != 3)
162                  return(-1);
163 <        viewpixel(&ipt[0], &ipt[1], NULL, &ourview, pt);
163 >        viewloc(ipt, &ourview, pt);
164          return(0);
165   }
166  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines