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

Comparing ray/src/gen/genbeads.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:04:35 1991 UTC vs.
Revision 2.5 by greg, Sat Feb 22 02:07:23 2003 UTC

# Line 1 | Line 1
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   *  genbeads.c - generate a string of spheres using Hermite
6   *              curve specification.
# Line 12 | Line 9 | static char SCCSid[] = "$SunId$ LBL";
9   */
10  
11   #include  <stdio.h>
12 + #include <stdlib.h>
13 + #include  <math.h>
14  
16
15   char  *mtype;           /* material type */
16  
17   char  *name;            /* name */
# Line 23 | Line 21 | main(argc, argv)
21   int  argc;
22   char  **argv;
23   {
26        double  atof();
24          double  p0[3], p1[3], r0[3], r1[3];
25          double  rad, inc;
26          
# Line 65 | Line 62 | double  r1[3];
62   double  rad;
63   double  inc;
64   {
68        double  sqrt();
65          register int  i;
66          double  v[3];
67          double  t;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines