| 12 |
|
|
| 13 |
|
#include <stdio.h> |
| 14 |
|
|
| 15 |
+ |
#include <math.h> |
| 16 |
+ |
|
| 17 |
|
#include "random.h" |
| 18 |
|
|
| 19 |
|
#define errf() (var*(0.5-frandom())) |
| 20 |
|
|
| 19 |
– |
#ifndef atof |
| 20 |
– |
extern double atof(); |
| 21 |
– |
#endif |
| 22 |
– |
|
| 21 |
|
double bstart[3] = {0.0, 0.0, 0.0}; /* start of branch */ |
| 22 |
|
double bend[3] = {28.0, 8.0, 0.0}; /* end of branch */ |
| 23 |
|
double bthick = .6; /* branch radius at base */ |
| 31 |
|
int rdepth = 3; /* recursion depth */ |
| 32 |
|
|
| 33 |
|
double var = 0.3; /* variability */ |
| 34 |
+ |
|
| 35 |
+ |
#ifdef DCL_ATOF |
| 36 |
+ |
extern double atof(); |
| 37 |
+ |
#endif |
| 38 |
|
|
| 39 |
|
|
| 40 |
|
main(argc, argv) |