1 |
< |
/* |
1 |
> |
/* Copyright (c) 1989 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
5 |
|
#endif |
6 |
+ |
|
7 |
+ |
/* |
8 |
|
* genbranch.c - program to generate 3D Christmas tree branches. |
9 |
|
* |
10 |
|
* 8/23/86 |
16 |
|
|
17 |
|
#define errf() (var*(0.5-frandom())) |
18 |
|
|
19 |
+ |
#ifndef atof |
20 |
+ |
extern double atof(); |
21 |
+ |
#endif |
22 |
+ |
|
23 |
|
double bstart[3] = {0.0, 0.0, 0.0}; /* start of branch */ |
24 |
|
double bend[3] = {28.0, 8.0, 0.0}; /* end of branch */ |
25 |
|
double bthick = .6; /* branch radius at base */ |
39 |
|
int argc; |
40 |
|
char *argv[]; |
41 |
|
{ |
36 |
– |
double atof(); |
42 |
|
int i, j; |
43 |
|
|
44 |
|
for (i = 1; i < argc && argv[i][0] == '-'; i++) |