ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/genclock.c
(Generate patch)

Comparing ray/src/gen/genclock.c (file contents):
Revision 2.2 by greg, Fri May 26 10:18:35 1995 UTC vs.
Revision 2.4 by greg, Sat Feb 22 02:07:23 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1995 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   * Generate an analog clock.
6   */
7  
8   #include <stdio.h>
9 + #include <stdlib.h>
10   #include <math.h>
11   #include <ctype.h>
12  
13   #define PI              3.14159265358979323846
14  
17 #ifdef  DCL_ATOF
18 extern double  atof();
19 #endif
20
15   #define FACEBITMAP      "clockface.hex"
16  
17   char    myfacemat[] = "white_plastic";
# Line 107 | Line 101 | genclock()                             /* put out clock body */
101          printf("\n%s ring %s.case_front\n", casemat, name);
102          printf("0\n0\n8\t.12\t0\t0\n\t1\t0\t0\n\t1\t1.1\n");
103          printf("\n%s cylinder %s.case_inner\n", casemat, name);
104 <        printf("0\n0\n7\t.05\t0\t0\n\t.15\t0\t0\n\t1\n");
104 >        printf("0\n0\n7\t.05\t0\t0\n\t.12\t0\t0\n\t1\n");
105          printf("\nclock_crystal ring %s.crystal\n", name);
106          printf("0\n0\n8\t.10\t0\t0\n\t1\t0\t0\n\t0\t1\n");
107          printf("\nclock_face_paint ring %s.face\n", name);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines