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

Comparing ray/src/cv/mgflib/mgf2inv.c (file contents):
Revision 1.8 by greg, Fri Feb 28 20:11:29 2003 UTC vs.
Revision 1.10 by greg, Tue Aug 5 20:40:16 2003 UTC

# Line 352 | Line 352 | put_material()                 /* put out current material */
352          indent(0);
353          printf("%s}\n", tabs);
354          if (outtype != O_INV1)
355 <                printf("%sShapeHints { shapeType %s }\n", tabs,
355 >                printf("%sShapeHints { shapeType %s faceType UNKNOWN_FACE_TYPE }\n",
356 >                        tabs,
357                          c_cmaterial->sided ? "SOLID" : "UNKNOWN_SHAPE_TYPE");
358          indent(0);
359          printf("%s}\n", tabs);
# Line 459 | Line 460 | char   **av;
460          if (put_material() < 0)
461                  return(MG_EBADMAT);
462                                  /* get endpoints */
463 <        if ((v1 = c_getvert(av[1])) == NULL | (v2 = c_getvert(av[3])) == NULL)
463 >        if (((v1 = c_getvert(av[1])) == NULL) | ((v2 = c_getvert(av[3])) == NULL))
464                  return(MG_EUNDEF);
465                                  /* get radius */
466          if (!isflt(av[2]))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines