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.11 by greg, Fri Apr 23 00:56:27 2004 UTC

# Line 39 | Line 39 | main(          /* compile a .OBJ file into a mesh */
39   )
40   {
41          int  nmatf = 0;
42 <        char  *matinp[32];
42 >        char  pathnames[12800];
43 >        char  *pns = pathnames;
44 >        char  *matinp[128];
45 >        char  *cp;
46          int  i, j;
47  
48          progname = argv[0];
# Line 55 | Line 58 | main(          /* compile a .OBJ file into a mesh */
58                          break;
59                  case 'a':                               /* material file */
60                          matinp[nmatf++] = argv[++i];
61 +                        break;
62 +                case 'l':                               /* library material */
63 +                        cp = getpath(argv[++i], getrlibpath(), R_OK);
64 +                        if (cp == NULL) {
65 +                                sprintf(errmsg,
66 +                                        "cannot find library material: '%s'",
67 +                                                argv[i]);
68 +                                error(USER, errmsg);
69 +                        }
70 +                        matinp[nmatf++] = strcpy(pns, cp);
71 +                        while (*pns++)
72 +                                ;
73                          break;
74                  case 'w':                               /* supress warnings */
75                          nowarn = 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines