1 |
– |
/* Copyright (c) 1996 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 |
|
* genprism.c - generate a prism. |
6 |
|
* 2D vertices in the xy plane are given on the |
11 |
|
|
12 |
|
#include <stdio.h> |
13 |
|
|
14 |
+ |
#include <stdlib.h> |
15 |
+ |
|
16 |
|
#include <math.h> |
17 |
|
|
18 |
|
#include <ctype.h> |
20 |
|
#define MAXVERT 1024 /* maximum # vertices */ |
21 |
|
|
22 |
|
#define FTINY 1e-6 |
24 |
– |
|
25 |
– |
#ifdef DCL_ATOF |
26 |
– |
extern double atof(); |
27 |
– |
#endif |
23 |
|
|
24 |
|
char *pmtype; /* material type */ |
25 |
|
char *pname; /* name */ |