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

Comparing ray/src/cv/mgflib/3ds2mgf.c (file contents):
Revision 1.5 by gregl, Fri Jan 16 10:47:27 1998 UTC vs.
Revision 1.7 by schorsch, Sat Nov 15 17:54:06 2003 UTC

# Line 1 | Line 1
1 + #ifndef lint
2 + static const char       RCSid[] = "$Id$";
3 + #endif
4   /*
5        3DS2POV.C  Copyright (c) 1996 Steve Anger and Jeff Bowermaster
6                          MGF output added by Greg Ward
# Line 10 | Line 13
13        Compiled with MSDOS GNU C++ 2.4.1 or generic ANSI-C compiler
14   */
15  
13 #ifndef lint
14 static char SCCSid[] = "$SunId$ LBL";
15 #endif
16
16   #include <stdio.h>
17   #include <stdlib.h>
18   #include <math.h>
# Line 927 | Line 926 | void write_summary (FILE *f)
926          case MGF:
927              comstr = "# ";
928              break;
929 +        default:
930 +                printf ("Illegal format in write_summary() '%c'\n", format);
931 +                exit(1);
932      }
933      fprintf (f, "%s   Object    CenterX    CenterY    CenterZ    LengthX    LengthY    LengthZ\n", comstr);
934      fprintf (f, "%s ---------- ---------- ---------- ---------- ---------- ---------- ----------\n", comstr);
# Line 1601 | Line 1603 | void write_mgf_material (FILE *f, MatProp *m)
1603   /* Write a mesh file */
1604   void write_mesh (FILE *f, Mesh *mesh)
1605   {
1604    FILE *fi;
1606      int i;
1607      char curmat[80];
1608      Vector va, vb, vc;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines