--- ray/src/ot/oconv.c 2003/03/12 04:59:04 2.13 +++ ray/src/ot/oconv.c 2003/06/08 12:03:10 2.16 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: oconv.c,v 2.13 2003/03/12 04:59:04 greg Exp $"; +static const char RCSid[] = "$Id: oconv.c,v 2.16 2003/06/08 12:03:10 schorsch Exp $"; #endif /* * oconv.c - main program for object to octree conversion. @@ -8,13 +8,10 @@ static const char RCSid[] = "$Id: oconv.c,v 2.13 2003/ */ #include "standard.h" - +#include "platform.h" #include "octree.h" - #include "object.h" - #include "otypes.h" - #include "paths.h" #define OMARGIN (10*FTINY) /* margin around global cube */ @@ -25,9 +22,9 @@ char *progname; /* argv[0] */ int nowarn = 0; /* supress warnings? */ -int objlim = 5; /* # of objects before split */ +int objlim = 6; /* # of objects before split */ -int resolu = 8192; /* octree resolution limit */ +int resolu = 16384; /* octree resolution limit */ CUBE thescene = {EMPTY, {0.0, 0.0, 0.0}, 0.0}; /* our scene */ @@ -85,9 +82,7 @@ char *argv[]; break; } breakopt: -#ifdef MSDOS - setmode(fileno(stdout), O_BINARY); -#endif + SET_FILE_BINARY(stdout); if (infile != NULL) { /* get old octree & objects */ if (thescene.cusize > FTINY) error(USER, "only one of '-b' or '-i'");