| 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 |
– |
|
| 15 |
|
char *mtype; /* material type */ |
| 16 |
|
|
| 17 |
|
char *name; /* name */ |
| 21 |
|
int argc; |
| 22 |
|
char **argv; |
| 23 |
|
{ |
| 26 |
– |
double atof(); |
| 24 |
|
double p0[3], p1[3], r0[3], r1[3]; |
| 25 |
|
double rad, inc; |
| 26 |
|
|
| 62 |
|
double rad; |
| 63 |
|
double inc; |
| 64 |
|
{ |
| 68 |
– |
double sqrt(); |
| 65 |
|
register int i; |
| 66 |
|
double v[3]; |
| 67 |
|
double t; |