11 |
|
*/ |
12 |
|
|
13 |
|
#include <stdlib.h> |
14 |
– |
#include <stdio.h> |
14 |
|
#include <ctype.h> |
15 |
|
|
16 |
|
#include "rtmath.h" |
25 |
|
#define DEFOBJ "unnamed" /* default object name */ |
26 |
|
#define DEFMAT "white" /* default material name */ |
27 |
|
|
28 |
< |
#define pvect(v) printf("%18.12g %18.12g %18.12g\n",(v)[0],(v)[1],(v)[2]) |
28 |
> |
#define pvect(v) printf(" %18.12g %18.12g %18.12g\n",(v)[0],(v)[1],(v)[2]) |
29 |
|
|
30 |
|
FVECT *vlist; /* our vertex list */ |
31 |
|
int nvs; /* number of vertices in our list */ |
70 |
|
|
71 |
|
int flatten = 0; /* discard surface normal information */ |
72 |
|
|
73 |
< |
char mapname[128]; /* current picture file */ |
74 |
< |
char matname[64]; /* current material name */ |
73 |
> |
char mapname[256]; /* current picture file */ |
74 |
> |
char matname[256]; /* current material name */ |
75 |
|
char group[8][256]; /* current group name(s) */ |
76 |
< |
char objname[128]; /* current object name */ |
76 |
> |
char objname[256]; /* current object name */ |
77 |
|
char *inpfile; /* input file name */ |
78 |
|
int lineno; /* current line number */ |
79 |
|
int faceno; /* current face number */ |