73 |
|
if (i == argc-2) /* open output file */ |
74 |
|
if (freopen(argv[i+1], "w", stdout) == NULL) |
75 |
|
error(SYSTEM, "cannot open output file"); |
76 |
< |
#ifdef MSDOS |
77 |
< |
setmode(fileno(stdout), O_BINARY); |
78 |
< |
#endif |
76 |
> |
SET_FILE_BINARY(stdout); |
77 |
|
newheader("RADIANCE", stdout); /* new binary file header */ |
78 |
|
printargs(i<argc ? i+1 : argc, argv, stdout); |
79 |
|
fputformat(MESHFMT, stdout); |
95 |
|
|
96 |
|
writemesh(ourmesh, stdout); /* write mesh to output */ |
97 |
|
|
98 |
< |
printmeshstats(ourmesh, stderr); |
98 |
> |
/* printmeshstats(ourmesh, stderr); */ |
99 |
|
|
100 |
|
quit(0); |
101 |
|
} |