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

Comparing ray/src/rt/srcsamp.c (file contents):
Revision 2.6 by greg, Wed Jul 20 12:48:44 1994 UTC vs.
Revision 2.9 by schorsch, Thu Jun 26 00:58:10 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1991 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   * Source sampling routines
6 + *
7 + *  External symbols declared in source.h
8   */
9  
10 + #include "copyright.h"
11 +
12   #include  "ray.h"
13  
14   #include  "source.h"
# Line 103 | Line 104 | nextsample:
104   }
105  
106  
107 + int
108   skipparts(ct, sz, pp, pt)               /* skip to requested partition */
109   int  ct[3], sz[3];              /* center and size of partition (returned) */
110   register int  pp[2];            /* current index, number to skip (modified) */
# Line 134 | Line 136 | unsigned char  *pt;            /* partition array */
136   }
137  
138  
139 + void
140   nopart(si, r)                   /* single source partition */
141   register SRCINDEX  *si;
142   RAY  *r;
# Line 144 | Line 147 | RAY  *r;
147   }
148  
149  
150 + void
151   cylpart(si, r)                  /* partition a cylinder */
152   SRCINDEX  *si;
153   register RAY  *r;
# Line 220 | Line 224 | double  d2;
224   }
225  
226  
227 + void
228   flatpart(si, r)                         /* partition a flat source */
229   register SRCINDEX  *si;
230   register RAY  *r;
231   {
232 <        register FLOAT  *vp;
232 >        register RREAL  *vp;
233          FVECT  v;
234          double  du2, dv2;
235          int  pi;
# Line 308 | Line 313 | scylform(sn, dir)              /* compute cosine for cylinder's pr
313   int  sn;
314   register FVECT  dir;            /* assume normalized */
315   {
316 <        register FLOAT  *dv;
316 >        register RREAL  *dv;
317          double  d;
318  
319          dv = source[sn].ss[SU];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines