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

Comparing ray/src/hd/rhd_glx.c (file contents):
Revision 3.15 by gregl, Tue Jan 6 13:07:57 1998 UTC vs.
Revision 3.16 by gregl, Thu Jan 22 10:10:49 1998 UTC

# Line 28 | Line 28 | static char SCCSid[] = "$SunId$ SGI";
28   #define MAXCONE         16              /* number of different cone sizes */
29   #endif
30   #ifndef MAXVERT
31 < #define MAXVERT         32              /* maximum number of cone vertices */
31 > #define MAXVERT         64              /* maximum number of cone vertices */
32   #endif
33   #ifndef MINVERT
34   #define MINVERT         4               /* minimum number of cone vertices */
# Line 359 | Line 359 | initcones()                    /* initialize cone vertices */
359          for (i = 0; i < MAXCONE; i++) {
360                  d = (double)i/(MAXCONE-1); d *= d;      /* x^2 distribution */
361                  cone[i].rad = minrad + (1.-minrad)*d;
362 <                cone[i].nverts = MINVERT + (MAXVERT-MINVERT)*d;
362 >                cone[i].nverts = MINVERT + 0.5 + (MAXVERT-MINVERT)*d;
363                  cone[i].va = (FVECT *)malloc(cone[i].nverts*sizeof(FVECT));
364                  if (cone[i].va == NULL)
365                          error(SYSTEM, "out of memory in initcones");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines