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

Comparing ray/src/px/warp3d.c (file contents):
Revision 3.2 by greg, Wed Feb 5 15:59:07 1997 UTC vs.
Revision 3.4 by gwlarson, Wed Sep 2 18:41:44 1998 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1997 Regents of the University of California */
1 > /* Copyright (c) 1998 Silicon Graphics, Inc. */
2  
3   #ifndef lint
4 < static char SCCSid[] = "$SunId$ LBL";
4 > static char SCCSid[] = "$SunId$ SGI";
5   #endif
6  
7   /*
# Line 137 | Line 137 | WARP3D *wp;
137   {
138          W3VEC   cv[8];
139          GNDX    gi;
140 <        int     rval = 0;
140 >        int     rval = W3OK;
141          register int    i;
142                                          /* get corner values */
143          for (i = 0; i < 8; i++) {
# Line 334 | Line 334 | register WARP3D        *wp;
334   }
335  
336  
337 < long
337 > unsigned long
338   gridhash(gp)                    /* hash a grid point index */
339   GNDX    gp;
340   {
# Line 367 | Line 367 | register WARP3D        *wp;
367          }
368          if (wp->grid.flags & W3EXACT) {
369                  wp->grid.gn[0] = wp->grid.gn[1] = wp->grid.gn[2] = 1;
370 +                wp->grid.gstep[0] = gmax[0] - wp->grid.gmin[0];
371 +                wp->grid.gstep[1] = gmax[1] - wp->grid.gmin[1];
372 +                wp->grid.gstep[2] = gmax[2] - wp->grid.gmin[2];
373                  return(W3OK);           /* no interpolation, so no grid */
374          }
375                                  /* create grid */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines