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

Comparing ray/src/rt/pmapopt.c (file contents):
Revision 2.3 by greg, Thu May 21 15:26:35 2015 UTC vs.
Revision 2.6 by greg, Tue Aug 18 18:45:55 2015 UTC

# Line 1 | Line 1
1 + #ifndef lint
2 + static const char RCSid[] = "$Id$";
3 + #endif
4   /*
5     ==================================================================
6     Photon map interface to RADIANCE render options
# Line 72 | Line 75 | int getPmapRenderOpt (int ac, char *av [])
75                 }
76                 else return 2;
77                
78 <            case 'm': /* max photon search radius coefficient */
79 <               if (check(3, "f") || (maxDistCoeff = atof(av [1])) <= 0)
78 >            case 'm': /* Fixed max photon search radius */
79 >               if (check(3, "f") || (maxDistFix = atof(av [1])) <= 0)
80                    error(USER, "invalid max photon search radius coefficient");
81  
82                 return 1;
# Line 90 | Line 93 | int getPmapRenderOpt (int ac, char *av [])
93   void printPmapDefaults ()
94   /* Print defaults for photon map render options */
95   {
96 <   puts("-ap file [bwidth1 [bwidth2]]\t# photon map");
94 <   printf("-am %.1f\t\t\t# max photon search radius coeff\n", maxDistCoeff);
96 >   printf("-am %.1f\t\t\t\t# max photon search radius\n", maxDistFix);
97   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines