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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.103 by greg, Sun Apr 24 15:40:33 2022 UTC vs.
Revision 2.106 by greg, Mon Feb 6 22:40:21 2023 UTC

# Line 45 | Line 45 | extern int  traincl;                   /* include == 1, exclude == 0 *
45   extern int  hresolu;                    /* horizontal resolution */
46   extern int  vresolu;                    /* vertical resolution */
47  
48 < int  castonly = 0;                      /* only doing ray-casting? */
48 > extern int  castonly;                   /* only doing ray-casting? */
49  
50   #ifndef  MAXTSET
51   #define  MAXTSET        8191            /* maximum number in trace set */
# Line 106 | Line 106 | quit(                  /* quit program */
106   }
107  
108  
109 < char *
109 > const char *
110   formstr(                                /* return format identifier */
111          int  f
112   )
# Line 160 | Line 160 | rtrace(                                /* trace rays from file */
160                                          /* set up output */
161          if (castonly || every_out[0] != NULL)
162                  nproc = 1;              /* don't bother multiprocessing */
163 <        if (Tflag && every_out[0] != NULL)
164 <                trace_sources();        /* asking to trace light sources */
163 >        if (every_out[0] != NULL) {
164 >                trace = ourtrace;       /* enable full tree tracing */
165 >                if (Tflag)              /* light sources, too? */
166 >                        trace_sources();
167 >        }
168          if ((nextflush > 0) & (nproc > nextflush)) {
169                  error(WARNING, "reducing number of processes to match flush interval");
170                  nproc = nextflush;
# Line 251 | Line 254 | setrtoutput(void)                      /* set up output tables, return #c
254                          if (!vs[1]) break;
255                          *table = NULL;
256                          table = every_out;
254                        trace = ourtrace;
257                          castonly = 0;
258                          break;
259                  case 'o':                               /* origin */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines