--- ray/src/px/warp3d.c 1997/02/05 15:59:07 3.2 +++ ray/src/px/warp3d.c 1998/09/02 18:41:44 3.4 @@ -1,7 +1,7 @@ -/* Copyright (c) 1997 Regents of the University of California */ +/* Copyright (c) 1998 Silicon Graphics, Inc. */ #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static char SCCSid[] = "$SunId$ SGI"; #endif /* @@ -137,7 +137,7 @@ WARP3D *wp; { W3VEC cv[8]; GNDX gi; - int rval = 0; + int rval = W3OK; register int i; /* get corner values */ for (i = 0; i < 8; i++) { @@ -334,7 +334,7 @@ register WARP3D *wp; } -long +unsigned long gridhash(gp) /* hash a grid point index */ GNDX gp; { @@ -367,6 +367,9 @@ register WARP3D *wp; } if (wp->grid.flags & W3EXACT) { wp->grid.gn[0] = wp->grid.gn[1] = wp->grid.gn[2] = 1; + wp->grid.gstep[0] = gmax[0] - wp->grid.gmin[0]; + wp->grid.gstep[1] = gmax[1] - wp->grid.gmin[1]; + wp->grid.gstep[2] = gmax[2] - wp->grid.gmin[2]; return(W3OK); /* no interpolation, so no grid */ } /* create grid */