--- ray/src/ot/obj2mesh.c 2016/03/22 03:56:17 2.14 +++ ray/src/ot/obj2mesh.c 2017/03/03 01:25:27 2.15 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: obj2mesh.c,v 2.14 2016/03/22 03:56:17 greg Exp $"; +static const char RCSid[] = "$Id: obj2mesh.c,v 2.15 2017/03/03 01:25:27 greg Exp $"; #endif /* * Main program to compile a Wavefront .OBJ file into a Radiance mesh @@ -40,6 +40,7 @@ main( /* compile a .OBJ file into a mesh */ ) { int nmatf = 0; + int verbose = 0; char pathnames[12800]; char *pns = pathnames; char *matinp[128]; @@ -75,6 +76,9 @@ main( /* compile a .OBJ file into a mesh */ case 'w': /* supress warnings */ nowarn = 1; break; + case 'v': /* print mesh stats */ + verbose = 1; + break; default: sprintf(errmsg, "unknown option: '%s'", argv[i]); error(USER, errmsg); @@ -121,7 +125,8 @@ main( /* compile a .OBJ file into a mesh */ writemesh(ourmesh, stdout); /* write mesh to output */ - /* printmeshstats(ourmesh, stderr); */ + if (verbose) + printmeshstats(ourmesh, stderr); quit(0); return 0; /* pro forma return */