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

Comparing ray/src/ot/cvmesh.c (file contents):
Revision 2.6 by schorsch, Thu Jun 26 00:58:10 2003 UTC vs.
Revision 2.7 by greg, Thu Sep 18 16:53:53 2003 UTC

# Line 301 | Line 301 | cvmeshbounds()                 /* set mesh boundaries */
301                  ourmesh->uvlim[1][0] = ourmesh->uvlim[1][1] = 0.;
302          } else {
303                  for (i = 0; i < 2; i++) {
304 <                        double  marg;
305 <                        marg = 1e-6*(ourmesh->uvlim[1][i] -
306 <                                        ourmesh->uvlim[0][i]);
304 >                        double  marg;           /* expand past endpoints */
305 >                        marg = (2./(1L<<(8*sizeof(uint16)))) *
306 >                                        (ourmesh->uvlim[1][i] -
307 >                                         ourmesh->uvlim[0][i]);
308                          ourmesh->uvlim[0][i] -= marg;
309                          ourmesh->uvlim[1][i] += marg;
310                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines