1 |
– |
/* Copyright (c) 1986 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 |
|
* genbeads.c - generate a string of spheres using Hermite |
6 |
|
* curve specification. |
9 |
|
*/ |
10 |
|
|
11 |
|
#include <stdio.h> |
12 |
+ |
#include <stdlib.h> |
13 |
+ |
#include <math.h> |
14 |
|
|
16 |
– |
|
17 |
– |
#ifndef atof |
18 |
– |
extern double atof(); |
19 |
– |
#endif |
20 |
– |
|
15 |
|
char *mtype; /* material type */ |
16 |
|
|
17 |
|
char *name; /* name */ |
62 |
|
double rad; |
63 |
|
double inc; |
64 |
|
{ |
71 |
– |
double sqrt(); |
65 |
|
register int i; |
66 |
|
double v[3]; |
67 |
|
double t; |