6 |
|
*/ |
7 |
|
|
8 |
|
#include "copyright.h" |
9 |
+ |
#include "paths.h" |
10 |
|
#include "platform.h" |
11 |
|
#include "standard.h" |
12 |
|
#include "resolu.h" |
23 |
|
|
24 |
|
int nowarn = 0; /* supress warnings? */ |
25 |
|
|
26 |
< |
int objlim = 15; /* # of objects before split */ |
26 |
> |
int objlim = 9; /* # of objects before split */ |
27 |
|
|
28 |
|
int resolu = 16384; /* octree resolution limit */ |
29 |
|
|
40 |
|
) |
41 |
|
{ |
42 |
|
int nmatf = 0; |
43 |
< |
char *matinp[32]; |
43 |
> |
char pathnames[12800]; |
44 |
> |
char *pns = pathnames; |
45 |
> |
char *matinp[128]; |
46 |
> |
char *cp; |
47 |
|
int i, j; |
48 |
|
|
49 |
|
progname = argv[0]; |
59 |
|
break; |
60 |
|
case 'a': /* material file */ |
61 |
|
matinp[nmatf++] = argv[++i]; |
62 |
+ |
break; |
63 |
+ |
case 'l': /* library material */ |
64 |
+ |
cp = getpath(argv[++i], getrlibpath(), R_OK); |
65 |
+ |
if (cp == NULL) { |
66 |
+ |
sprintf(errmsg, |
67 |
+ |
"cannot find library material: '%s'", |
68 |
+ |
argv[i]); |
69 |
+ |
error(USER, errmsg); |
70 |
+ |
} |
71 |
+ |
matinp[nmatf++] = strcpy(pns, cp); |
72 |
+ |
while (*pns++) |
73 |
+ |
; |
74 |
|
break; |
75 |
|
case 'w': /* supress warnings */ |
76 |
|
nowarn = 1; |