--- ray/src/gen/genblinds.c 1994/10/10 12:07:45 2.7 +++ ray/src/gen/genblinds.c 2003/02/22 02:07:23 2.9 @@ -1,9 +1,6 @@ -/* Copyright (c) 1986 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: genblinds.c,v 2.9 2003/02/22 02:07:23 greg Exp $"; #endif - /* * genblind2.c - make some curved or flat venetian blinds. * @@ -19,6 +16,7 @@ static char SCCSid[] = "$SunId$ LBL"; */ #include +#include #include #define PI 3.14159265358979323846 @@ -30,11 +28,7 @@ char *material, *name; double height; int nslats, nsurf; -#ifdef DCL_ATOF -extern double atof(); -#endif - main(argc, argv) int argc; char *argv[]; @@ -71,7 +65,7 @@ char *argv[]; /* HOW MANY ELEMENTARY SURFACES SHOULD BE CALCULATED ? */ - nsurf = (theta / ((PI/180.)*DELTA)); + nsurf = (theta / ((PI/180.)*DELTA)) + 1; /* WHAT IS THE DEPTH OF THE ELEMENTARY SURFACES ? */