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

Comparing ray/src/hd/rhdisp2.c (file contents):
Revision 3.10 by gregl, Mon Dec 8 19:03:01 1997 UTC vs.
Revision 3.11 by gregl, Tue Dec 9 13:53:21 1997 UTC

# Line 367 | Line 367 | register struct cellact        *cap;
367          hdworld(org, hp, cgp);
368                                  /* compute direction to voxel center */
369          for (i = 3; i--; )
370 <                vgp[i] = voxel[cap->vi].i[i] + 0.5;
370 >                vgp[i] = voxel[cap->vi].i[i] + .5;
371          hdworld(vc, hp, vgp);
372          for (i = 3; i--; )
373                  vc[i] -= org[i];
# Line 440 | Line 440 | VIEW   *vold, *vnew;
440          ngcp = ngcl = getviewcells(&ncnt, hdlist[voxel[voxi].hd], vnew);
441                                  /* set up actions */
442          oca.vi = nca.vi = voxi;
443        oca.rev = nca.rev = 0;
443          oca.add = 0; nca.add = 1;
444          if ((oca.rev = ocnt < 0))
445                  ocnt = -ocnt;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines