18 |
|
|
19 |
|
#include "otypes.h" |
20 |
|
|
21 |
+ |
#ifndef DEFPATH |
22 |
+ |
#define DEFPATH ":/usr/local/lib/ray" |
23 |
+ |
#endif |
24 |
+ |
|
25 |
|
#define OMARGIN (10*FTINY) /* margin around global cube */ |
26 |
|
|
27 |
|
#define MAXOBJFIL 63 /* maximum number of scene files */ |
50 |
|
int argc; |
51 |
|
char **argv; |
52 |
|
{ |
53 |
< |
char *getenv(); |
50 |
< |
double atof(); |
53 |
> |
extern char *getenv(); |
54 |
|
FVECT bbmin, bbmax; |
55 |
|
char *infile = NULL; |
56 |
|
int outflags = IO_ALL; |
60 |
|
progname = argv[0]; |
61 |
|
|
62 |
|
if ((libpath = getenv("RAYPATH")) == NULL) |
63 |
< |
libpath = ":/usr/local/lib/ray"; |
63 |
> |
libpath = DEFPATH; |
64 |
|
|
65 |
|
initotypes(); |
66 |
|
|
106 |
|
} |
107 |
|
|
108 |
|
printargs(argc, argv, stdout); /* info. header */ |
109 |
+ |
fputformat(OCTFMT, stdout); |
110 |
|
printf("\n"); |
111 |
|
|
112 |
|
startobj = nobjects; /* previous objects already converted */ |