24 |
|
|
25 |
|
#define O_INV1 1 /* Inventor 1.0 output */ |
26 |
|
#define O_INV2 2 /* Inventor 2.0 output */ |
27 |
< |
#define O_VRML 3 /* VRML output */ |
27 |
> |
#define O_VRML1 3 /* VRML 1.0 output */ |
28 |
|
|
29 |
|
#define MAXID 48 /* maximum identifier length */ |
30 |
|
|
99 |
|
/* get options and print format line */ |
100 |
|
for (i = 1; i < argc && argv[i][0] == '-'; i++) |
101 |
|
if (!strcmp(argv[i], "-vrml")) |
102 |
< |
outtype = O_VRML; |
102 |
> |
outtype = O_VRML1; |
103 |
|
else if (!strcmp(argv[i], "-1")) |
104 |
|
outtype = O_INV1; |
105 |
|
else if (!strcmp(argv[i], "-2")) |
113 |
|
case O_INV2: |
114 |
|
printf("#Inventor V2.0 ascii\n"); |
115 |
|
break; |
116 |
< |
case O_VRML: |
117 |
< |
printf("#VRML 1.0 ascii\n"); |
116 |
> |
case O_VRML1: |
117 |
> |
printf("#VRML V1.0 ascii\n"); |
118 |
|
break; |
119 |
|
} |
120 |
|
printf("## Translated from MGF Version %d.%d\n", MG_VMAJOR, MG_VMINOR); |