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

Comparing ray/src/common/objutil.c (file contents):
Revision 2.6 by greg, Sun Jun 14 03:04:25 2020 UTC vs.
Revision 2.7 by greg, Sun Jun 14 17:44:27 2020 UTC

# Line 760 | Line 760 | dupScene(const Scene *osc)
760          return(sc);
761   }
762  
763 + #define MAXAC   100
764 +
765   /* Transform entire scene */
766   int
767   xfScene(Scene *sc, int xac, char *xav[])
768   {
769 +        char    comm[24+MAXAC*8];
770 +        char    *cp;
771          XF      myxf;
772          FVECT   vec;
773          int     i;
# Line 786 | Line 790 | xfScene(Scene *sc, int xac, char *xav[])
790                  vec[0] /= myxf.sca; vec[1] /= myxf.sca; vec[2] /= myxf.sca;
791                  VCOPY(sc->norm[i], vec);
792          }
793 +                                        /* add comment */
794 +        cp = strcpy(comm, "Transformed by:");
795 +        for (i = 0; i < xac; i++) {
796 +                while (*cp) cp++;
797 +                *cp++ = ' ';
798 +                strcpy(cp, xav[i]);
799 +        }
800 +        addComment(sc, comm);
801          return(xac);                    /* all done */
802   }
803  
804   /* Ditto, using transform string rather than pre-parsed words */
793 #define MAXAC   100
805   int
806   xfmScene(Scene *sc, const char *xfm)
807   {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines