--- ray/src/ot/oconv.c 1994/04/14 05:02:06 2.9 +++ ray/src/ot/oconv.c 2003/02/22 02:07:26 2.12 @@ -1,9 +1,6 @@ -/* Copyright (c) 1992 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: oconv.c,v 2.12 2003/02/22 02:07:26 greg Exp $"; #endif - /* * oconv.c - main program for object to octree conversion. * @@ -22,7 +19,7 @@ static char SCCSid[] = "$SunId$ LBL"; #define OMARGIN (10*FTINY) /* margin around global cube */ -#define MAXOBJFIL 63 /* maximum number of scene files */ +#define MAXOBJFIL 127 /* maximum number of scene files */ char *progname; /* argv[0] */ @@ -30,7 +27,7 @@ int nowarn = 0; /* supress warnings? */ int objlim = 5; /* # of objects before split */ -int resolu = 1024; /* octree resolution limit */ +int resolu = 8192; /* octree resolution limit */ CUBE thescene = {EMPTY, {0.0, 0.0, 0.0}, 0.0}; /* our scene */ @@ -39,14 +36,13 @@ int nfiles = 0; /* number of object files */ double mincusize; /* minimum cube size from resolu */ -int (*addobjnotify[])() = {NULL}; /* new object notifier functions */ +void (*addobjnotify[])() = {NULL}; /* new object notifier functions */ main(argc, argv) /* convert object files to an octree */ int argc; -char **argv; +char *argv[]; { - extern char *getenv(); FVECT bbmin, bbmax; char *infile = NULL; int inpfrozen = 0; @@ -61,7 +57,6 @@ char **argv; for (i = 1; i < argc && argv[i][0] == '-'; i++) switch (argv[i][1]) { case '\0': /* scene from stdin */ - outflags &= ~IO_FILES; goto breakopt; case 'i': /* input octree */ infile = argv[++i]; @@ -162,6 +157,7 @@ breakopt: } +void quit(code) /* exit program */ int code; { @@ -169,12 +165,14 @@ int code; } +void cputs() /* interactive error */ { /* referenced, but not used */ } +void wputs(s) /* warning message */ char *s; { @@ -183,6 +181,7 @@ char *s; } +void eputs(s) /* put string to stderr */ register char *s; {