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 |
|
* genblind2.c - make some curved or flat venetian blinds. |
6 |
|
* |
16 |
|
*/ |
17 |
|
|
18 |
|
#include <stdio.h> |
19 |
+ |
#include <stdlib.h> |
20 |
|
#include <math.h> |
21 |
|
|
22 |
|
#define PI 3.14159265358979323846 |
28 |
|
double height; |
29 |
|
int nslats, nsurf; |
30 |
|
|
33 |
– |
#ifdef DCL_ATOF |
34 |
– |
extern double atof(); |
35 |
– |
#endif |
31 |
|
|
37 |
– |
|
32 |
|
main(argc, argv) |
33 |
|
int argc; |
34 |
|
char *argv[]; |
65 |
|
|
66 |
|
/* HOW MANY ELEMENTARY SURFACES SHOULD BE CALCULATED ? */ |
67 |
|
|
68 |
< |
nsurf = (theta / ((PI/180.)*DELTA)); |
68 |
> |
nsurf = (theta / ((PI/180.)*DELTA)) + 1; |
69 |
|
|
70 |
|
/* WHAT IS THE DEPTH OF THE ELEMENTARY SURFACES ? */ |
71 |
|
|