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

Comparing ray/src/cv/obj2rad.c (file contents):
Revision 2.28 by greg, Tue Aug 20 16:19:03 2013 UTC vs.
Revision 2.33 by greg, Sat Jun 7 05:09:45 2025 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11   */
12  
13   #include <stdlib.h>
14 #include <stdio.h>
14   #include <ctype.h>
15  
16   #include "rtmath.h"
17   #include "rtio.h"
18 + #include "paths.h"
19   #include "resolu.h"
20   #include "trans.h"
21   #include "tmesh.h"
# Line 26 | Line 26 | static const char      RCSid[] = "$Id$";
26   #define DEFOBJ          "unnamed"       /* default object name */
27   #define DEFMAT          "white"         /* default material name */
28  
29 < #define pvect(v)        printf("%18.12g %18.12g %18.12g\n",(v)[0],(v)[1],(v)[2])
29 > #define pvect(v)        printf(" %18.12g %18.12g %18.12g\n",(v)[0],(v)[1],(v)[2])
30  
31   FVECT   *vlist;                 /* our vertex list */
32   int     nvs;                    /* number of vertices in our list */
# Line 71 | Line 71 | char   *defobj = DEFOBJ;       /* default (starting) object na
71  
72   int     flatten = 0;            /* discard surface normal information */
73  
74 < char    mapname[128];           /* current picture file */
75 < char    matname[64];            /* current material name */
74 > char    mapname[256];           /* current picture file */
75 > char    matname[256];           /* current material name */
76   char    group[8][256];          /* current group name(s) */
77 < char    objname[128];           /* current object name */
77 > char    objname[256];           /* current object name */
78   char    *inpfile;               /* input file name */
79   int     lineno;                 /* current line number */
80   int     faceno;                 /* current face number */
# Line 658 | Line 658 | puttri(                        /* put out a triangle */
658                          bcoor[i][1] = vnlist[v2i[2]][i];
659                          bcoor[i][2] = vnlist[v3i[2]][i];
660                  }
661 <                put_baryc(&bvecs, bcoor, 3);
661 >                fput_baryc(&bvecs, bcoor, 3, stdout);
662          }
663   #ifdef TEXMAPS
664                                          /* put out pattern (if any) */
# Line 672 | Line 672 | puttri(                        /* put out a triangle */
672                          bcoor[i][1] = vtlist[v2i[1]][i];
673                          bcoor[i][2] = vtlist[v3i[1]][i];
674                  }
675 <                put_baryc(&bvecs, bcoor, 2);
675 >                fput_baryc(&bvecs, bcoor, 2, stdout);
676          }
677   #endif
678                                          /* put out (reversed) triangle */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines