--- ray/src/cv/obj2rad.c 2013/08/20 16:19:03 2.28 +++ ray/src/cv/obj2rad.c 2020/01/28 21:18:02 2.31 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: obj2rad.c,v 2.28 2013/08/20 16:19:03 greg Exp $"; +static const char RCSid[] = "$Id: obj2rad.c,v 2.31 2020/01/28 21:18:02 greg Exp $"; #endif /* * Convert a Wavefront .OBJ file to Radiance format. @@ -11,7 +11,6 @@ static const char RCSid[] = "$Id: obj2rad.c,v 2.28 201 */ #include -#include #include #include "rtmath.h" @@ -26,7 +25,7 @@ static const char RCSid[] = "$Id: obj2rad.c,v 2.28 201 #define DEFOBJ "unnamed" /* default object name */ #define DEFMAT "white" /* default material name */ -#define pvect(v) printf("%18.12g %18.12g %18.12g\n",(v)[0],(v)[1],(v)[2]) +#define pvect(v) printf(" %18.12g %18.12g %18.12g\n",(v)[0],(v)[1],(v)[2]) FVECT *vlist; /* our vertex list */ int nvs; /* number of vertices in our list */ @@ -71,10 +70,10 @@ char *defobj = DEFOBJ; /* default (starting) object na int flatten = 0; /* discard surface normal information */ -char mapname[128]; /* current picture file */ -char matname[64]; /* current material name */ +char mapname[256]; /* current picture file */ +char matname[256]; /* current material name */ char group[8][256]; /* current group name(s) */ -char objname[128]; /* current object name */ +char objname[256]; /* current object name */ char *inpfile; /* input file name */ int lineno; /* current line number */ int faceno; /* current face number */