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 |
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> |
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); |
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; |