ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/ot/obj2mesh.c
(Generate patch)

Comparing ray/src/ot/obj2mesh.c (file contents):
Revision 2.10 by greg, Thu Apr 22 17:35:54 2004 UTC vs.
Revision 2.13 by greg, Wed Nov 12 03:54:31 2008 UTC

# Line 6 | Line 6 | static const char RCSid[] = "$Id$";
6   */
7  
8   #include "copyright.h"
9 + #include "paths.h"
10   #include "platform.h"
11   #include "standard.h"
12   #include "resolu.h"
# Line 22 | Line 23 | char  *progname;                       /* argv[0] */
23  
24   int  nowarn = 0;                        /* supress warnings? */
25  
26 < int  objlim = 15;                       /* # of objects before split */
26 > int  objlim = 9;                        /* # of objects before split */
27  
28   int  resolu = 16384;                    /* octree resolution limit */
29  
# Line 39 | Line 40 | main(          /* compile a .OBJ file into a mesh */
40   )
41   {
42          int  nmatf = 0;
43 <        char  *matinp[32];
43 >        char  pathnames[12800];
44 >        char  *pns = pathnames;
45 >        char  *matinp[128];
46 >        char  *cp;
47          int  i, j;
48  
49          progname = argv[0];
# Line 55 | Line 59 | main(          /* compile a .OBJ file into a mesh */
59                          break;
60                  case 'a':                               /* material file */
61                          matinp[nmatf++] = argv[++i];
62 +                        break;
63 +                case 'l':                               /* library material */
64 +                        cp = getpath(argv[++i], getrlibpath(), R_OK);
65 +                        if (cp == NULL) {
66 +                                sprintf(errmsg,
67 +                                        "cannot find library material: '%s'",
68 +                                                argv[i]);
69 +                                error(USER, errmsg);
70 +                        }
71 +                        matinp[nmatf++] = strcpy(pns, cp);
72 +                        while (*pns++)
73 +                                ;
74                          break;
75                  case 'w':                               /* supress warnings */
76                          nowarn = 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines