| 1 |
– |
/* Copyright (c) 1995 Regents of the University of California */ |
| 2 |
– |
|
| 1 |
|
#ifndef lint |
| 2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
| 2 |
> |
static const char RCSid[] = "$Id$"; |
| 3 |
|
#endif |
| 6 |
– |
|
| 4 |
|
/* |
| 5 |
|
* Convert MGF (Materials and Geometry Format) to Metafile 2-d graphics |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
|
#include <stdio.h> |
| 9 |
+ |
#include <stdlib.h> |
| 10 |
|
#include <math.h> |
| 11 |
|
#include "random.h" |
| 12 |
|
#include "mgflib/parser.h" |
| 14 |
|
#define MSIZE ((1<<14)-1) |
| 15 |
|
#define MX(v) (int)(MSIZE*(v)[(proj_axis+1)%3]) |
| 16 |
|
#define MY(v) (int)(MSIZE*(v)[(proj_axis+2)%3]) |
| 19 |
– |
|
| 20 |
– |
#ifdef DCL_ATOF |
| 21 |
– |
extern double atof(); |
| 22 |
– |
#endif |
| 17 |
|
|
| 18 |
|
int r_face(); |
| 19 |
|
int proj_axis; |