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 */ |
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"); |