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

Comparing ray/src/cv/robjutil.c (file contents):
Revision 2.5 by greg, Thu Feb 9 21:54:10 2023 UTC vs.
Revision 2.7 by greg, Tue Jun 3 21:31:51 2025 UTC

# Line 10 | Line 10 | static const char RCSid[] = "$Id$";
10   #include <stdlib.h>
11   #include <string.h>
12   #include "rtio.h"
13 + #include "paths.h"
14   #include "objutil.h"
15  
15 const char      *progname;
16   int             verbose = 0;
17  
18   int
# Line 33 | Line 33 | main(int argc, char *argv[])
33          char            cbuf[256];
34          double          verteps = -1.;
35          int     i, n;
36 <        
37 <        progname = argv[0];
36 >                                                /* set global progname */
37 >        fixargv0(argv[0]);
38                                                  /* process options */
39          for (i = 1; i < argc && (argv[i][0] == '-' || argv[i][0] == '+'); i++)
40                  switch (argv[i][1]) {
# Line 185 | Line 185 | main(int argc, char *argv[])
185          }
186          if (verbose)
187                  fputs("Checking for duplicate faces...\n", stderr);
188 <        if (findDuplicateFaces(myScene))
188 >        if (findDuplicateFaces(myScene)) {
189                  n = deleteFaces(myScene, FACE_DUPLICATE, 0);
190 <        if (n) {
191 <                sprintf(cbuf, "Removed %d duplicate faces", n);
192 <                addComment(myScene, cbuf);
190 >                if (n) {
191 >                        sprintf(cbuf, "Removed %d duplicate faces", n);
192 >                        addComment(myScene, cbuf);
193 >                }
194          }
195          if (do_triangulate) {
196                  if (verbose)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines