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.30 by greg, Sat Dec 28 18:05:14 2019 UTC vs.
Revision 2.33 by greg, Sat Jun 7 05:09:45 2025 UTC

# Line 15 | Line 15 | static const char      RCSid[] = "$Id$";
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 25 | 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 657 | 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 671 | 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