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

Comparing ray/src/hd/rhd_qtree.c (file contents):
Revision 3.5 by gregl, Fri Nov 21 13:35:57 1997 UTC vs.
Revision 3.6 by gregl, Mon Nov 24 15:16:10 1997 UTC

# Line 10 | Line 10 | static char SCCSid[] = "$SunId$ SGI";
10  
11   #include "standard.h"
12   #include "rhd_qtree.h"
13 +                                /* quantity of leaves to free at a time */
14 + #ifndef LFREEPCT
15 + #define LFREEPCT        25
16 + #endif
17  
18   RTREE   qtrunk;                 /* our quadtree trunk */
19   double  qtDepthEps = .02;       /* epsilon to compare depths (z fraction) */
# Line 58 | Line 62 | int    really;
62   {
63          register int    i;
64  
65 <        qtrunk.flgs = 0;
65 >        qtrunk.flgs = CH_ANY;
66          nexttwig = 0;
67          if (twigbundle == NULL)
68                  return;
# Line 323 | Line 327 | qtMapLeaves(redo)              /* map our leaves to RGB */
327   int     redo;
328   {
329          int     aorg, alen, borg, blen;
330 +                                        /* recompute mapping? */
331 +        if (redo)
332 +                qtL.tml = qtL.bl;
333                                          /* already done? */
334          if (qtL.tml == qtL.tl)
335                  return(1);
329        if (redo)
330                qtL.tml = qtL.bl;
336                                          /* compute segments */
337          aorg = qtL.tml;
338          if (qtL.tl >= aorg) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines