7 |
|
|
8 |
|
#include "copyright.h" |
9 |
|
|
10 |
– |
#include <sys/types.h> |
10 |
|
#include <signal.h> |
11 |
|
|
12 |
|
#include "platform.h" |
227 |
|
/* initialize object types */ |
228 |
|
initotypes(); |
229 |
|
/* initialize urand */ |
230 |
< |
initurand(2048); |
230 |
> |
if (rand_samp) { |
231 |
> |
srandom((long)time(0)); |
232 |
> |
initurand(0); |
233 |
> |
} else { |
234 |
> |
srandom(0L); |
235 |
> |
initurand(2048); |
236 |
> |
} |
237 |
|
/* set up signal handling */ |
238 |
|
sigdie(SIGINT, "Interrupt"); |
239 |
|
#ifdef SIGHUP |
279 |
|
openheader(); |
280 |
|
} |
281 |
|
#endif |
277 |
– |
#ifdef _WIN32 |
282 |
|
if (outform != 'a') |
283 |
|
SET_FILE_BINARY(stdout); |
280 |
– |
if (octname == NULL) |
281 |
– |
SET_FILE_BINARY(stdin); |
282 |
– |
#endif |
284 |
|
readoct(octname, loadflags, &thescene, NULL); |
285 |
|
nsceneobjs = nobjects; |
286 |
|
|
440 |
|
case 'o': printf(" origin"); break; |
441 |
|
case 'd': printf(" direction"); break; |
442 |
|
case 'v': printf(" value"); break; |
443 |
+ |
case 'V': printf(" contribution"); break; |
444 |
|
case 'l': printf(" length"); break; |
445 |
|
case 'L': printf(" first_length"); break; |
446 |
|
case 'p': printf(" point"); break; |
448 |
|
case 'N': printf(" unperturbed_normal"); break; |
449 |
|
case 's': printf(" surface"); break; |
450 |
|
case 'w': printf(" weight"); break; |
451 |
+ |
case 'W': printf(" coefficient"); break; |
452 |
|
case 'm': printf(" modifier"); break; |
453 |
|
case 'M': printf(" material"); break; |
451 |
– |
case 'W': printf(" contribution"); break; |
454 |
|
case '-': printf(" stroke"); break; |
455 |
|
} |
456 |
|
putchar('\n'); |