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

Comparing ray/src/cv/mgf2rad.c (file contents):
Revision 2.3 by greg, Fri Jun 24 17:16:51 1994 UTC vs.
Revision 2.4 by greg, Sat Jun 25 09:45:22 1994 UTC

# Line 34 | Line 34 | char   *argv[];
34          mg_ehand[MG_E_COMMENT] = r_comment;
35          mg_ehand[MG_E_COLOR] = c_hcolor;
36          mg_ehand[MG_E_CONE] = r_cone;
37 +        mg_ehand[MG_E_CMIX] = c_hcolor;
38 +        mg_ehand[MG_E_CSPEC] = c_hcolor;
39          mg_ehand[MG_E_CXY] = c_hcolor;
40          mg_ehand[MG_E_CYL] = r_cyl;
41          mg_ehand[MG_E_ED] = c_hmaterial;
# Line 337 | Line 339 | char   **av;
339                                          /* put out xform command */
340          printf("\n!xform");
341          oname = object();
342 <        if (*oname)
343 <                printf(" -n %s", oname);
342 >        if (*oname) {
343 >                printf(" -n ");
344 >                for (op = oname; op[1]; op++)   /* remove trailing separator */
345 >                        putchar(*op);
346 >        }
347          for (i = xa0; i < ac; i++)
348                  printf(" %s", av[i]);
349          if (ac > xa0 && xf_argc > 0)
# Line 488 | Line 493 | double intensity;
493   {
494          static COLOR    ciexyz;
495  
496 +        c_ccvt(ciec, C_CSXY);           /* get xy representation */
497          ciexyz[1] = intensity;
498          ciexyz[0] = ciec->cx/ciec->cy*ciexyz[1];
499          ciexyz[2] = ciexyz[1]*(1./ciec->cy - 1.) - ciexyz[0];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines