| 15 |
|
|
| 16 |
|
#define MAXDEPTH 32 /* ridiculous ray tree depth */ |
| 17 |
|
|
| 18 |
< |
#ifdef SMLFLT |
| 19 |
< |
#define sscanvec(s,v) (sscanf(s,"%f %f %f",v,v+1,v+2)==3) |
| 20 |
< |
#else |
| 21 |
< |
#define sscanvec(s,v) (sscanf(s,"%lf %lf %lf",v,v+1,v+2)==3) |
| 22 |
< |
#endif |
| 18 |
> |
#define sscanvec(s,v) (sscanf(s,FVFORMAT,v,v+1,v+2)==3) |
| 19 |
|
|
| 20 |
< |
char rtcom[] = "rtrace -h- -otp -fa -x 1"; |
| 20 |
> |
char rtcom[64] = "rtrace -h- -otp -fa -x 1"; |
| 21 |
|
char xicom[] = "ximage -c 256"; |
| 22 |
|
|
| 23 |
|
VIEW ourview = STDVIEW; /* view for picture */ |
| 62 |
|
for (i = 1; i < argc-2; i++) |
| 63 |
|
if (!strcmp(argv[i], "-s")) |
| 64 |
|
slow++; |
| 65 |
+ |
else if (!strcmp(argv[i], "-T")) |
| 66 |
+ |
strcat(rtcom, " -oTp"); |
| 67 |
|
else |
| 68 |
|
break; |
| 69 |
|
if (i > argc-2) { |
| 70 |
< |
fprintf(stderr, "Usage: %s [-s] [rtrace args] octree picture\n", |
| 70 |
> |
fprintf(stderr, "Usage: %s [-s][-T] [rtrace args] octree picture\n", |
| 71 |
|
progname); |
| 72 |
|
exit(1); |
| 73 |
|
} |