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

Comparing ray/src/cv/mgflib/xf.c (file contents):
Revision 1.6 by greg, Mon Jul 11 14:47:12 1994 UTC vs.
Revision 1.7 by greg, Thu Jul 21 14:56:39 1994 UTC

# Line 80 | Line 80 | char   **av;
80                                          /* translate new specification */
81          if (xf(&thisxf, spec->xac, &xf_argv[spec->xav0]) != spec->xac)
82                  return(MG_ETYPE);
83 +                                        /* check for vertex reversal */
84 +        if ((spec->rev = (thisxf.sca < 0.)))
85 +                thisxf.sca = -thisxf.sca;
86                                          /* compute total transformation */
87          if (spec->prev != NULL) {
88                  multmat4(spec->xf.xfm, thisxf.xfm, spec->prev->xf.xfm);
89                  spec->xf.sca = thisxf.sca * spec->prev->xf.sca;
90 +                spec->rev ^= spec->prev->rev;
91          } else
92                  spec->xf = thisxf;
93          spec->xid = comp_xfid(spec->xf.xfm);    /* compute unique ID */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines