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

Comparing ray/src/cv/ies2rad.c (file contents):
Revision 1.2 by greg, Fri Dec 14 14:41:14 1990 UTC vs.
Revision 1.3 by greg, Tue Jan 29 12:19:10 1991 UTC

# Line 71 | Line 71 | double illumrad = 0.0;                 /* radius for illum sphere */
71   typedef struct {
72          int     type;                           /* RECT, DISK, SPHERE */
73          double  w, l, h;                        /* width, length, height */
74 <        double  area;                           /* effective radiating area */
74 >        double  area;                           /* max. projected area */
75   } SHAPE;                                /* a source shape */
76  
77   int     gargc;                          /* global argc (minus filenames) */
# Line 696 | Line 696 | double width, length, height;
696                  shp->area = shp->w * shp->l;
697                  break;
698          case DISK:
699                shp->area = PI/4. * shp->w * shp->w;
700                break;
699          case SPHERE:
700 <                shp->area = PI * shp->w * shp->w;
700 >                shp->area = PI/4. * shp->w * shp->w;
701                  break;
702          }
703          return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines