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.32 by greg, Thu Apr 15 23:51:04 2021 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"
# Line 26 | Line 25 | static const char      RCSid[] = "$Id$";
25   #define DEFOBJ          "unnamed"       /* default object name */
26   #define DEFMAT          "white"         /* default material name */
27  
28 < #define pvect(v)        printf("%18.12g %18.12g %18.12g\n",(v)[0],(v)[1],(v)[2])
28 > #define pvect(v)        printf(" %18.12g %18.12g %18.12g\n",(v)[0],(v)[1],(v)[2])
29  
30   FVECT   *vlist;                 /* our vertex list */
31   int     nvs;                    /* number of vertices in our list */
# Line 71 | Line 70 | char   *defobj = DEFOBJ;       /* default (starting) object na
70  
71   int     flatten = 0;            /* discard surface normal information */
72  
73 < char    mapname[128];           /* current picture file */
74 < char    matname[64];            /* current material name */
73 > char    mapname[256];           /* current picture file */
74 > char    matname[256];           /* current material name */
75   char    group[8][256];          /* current group name(s) */
76 < char    objname[128];           /* current object name */
76 > char    objname[256];           /* current object name */
77   char    *inpfile;               /* input file name */
78   int     lineno;                 /* current line number */
79   int     faceno;                 /* current face number */
# Line 658 | Line 657 | puttri(                        /* put out a triangle */
657                          bcoor[i][1] = vnlist[v2i[2]][i];
658                          bcoor[i][2] = vnlist[v3i[2]][i];
659                  }
660 <                put_baryc(&bvecs, bcoor, 3);
660 >                fput_baryc(&bvecs, bcoor, 3, stdout);
661          }
662   #ifdef TEXMAPS
663                                          /* put out pattern (if any) */
# Line 672 | Line 671 | puttri(                        /* put out a triangle */
671                          bcoor[i][1] = vtlist[v2i[1]][i];
672                          bcoor[i][2] = vtlist[v3i[1]][i];
673                  }
674 <                put_baryc(&bvecs, bcoor, 2);
674 >                fput_baryc(&bvecs, bcoor, 2, stdout);
675          }
676   #endif
677                                          /* put out (reversed) triangle */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines