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

Comparing ray/src/rt/pmapooc.c (file contents):
Revision 1.6 by rschregle, Wed Apr 8 15:14:21 2020 UTC vs.
Revision 1.7 by rschregle, Mon Mar 22 23:00:00 2021 UTC

# Line 152 | Line 152 | int OOC_LoadPhotons (struct PhotonMap *pmap, FILE *nod
152  
153     if (OOC_LoadOctree(&pmap -> store, nodeFile, OOC_PhotonKey, leafFile))
154        return -1;
155 <      
155 >
156 > #ifdef DEBUG_OOC
157 >   /* Check octree for consistency */
158 >   if (OOC_Check(
159 >      &pmap -> store, OOC_ROOT(&pmap -> store),
160 >      pmap -> store.org, pmap -> store.size, 0
161 >   ))
162 >      return -1;
163 > #endif
164 >
165     return 0;
166   }
167  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines