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.1 by greg, Tue Mar 11 17:08:55 2003 UTC vs.
Revision 2.2 by greg, Wed Mar 12 04:59:04 2003 UTC

# Line 57 | Line 57 | char   *nm;
57          ourmesh->nref = 1;
58          ourmesh->ldflags = 0;
59          ourmesh->mcube.cutree = EMPTY;
60 <        ourmesh->uvlim[0][0] = ourmesh->uvlim[1][0] = FHUGE;
61 <        ourmesh->uvlim[0][1] = ourmesh->uvlim[1][1] = -FHUGE;
60 >        ourmesh->uvlim[0][0] = ourmesh->uvlim[0][1] = FHUGE;
61 >        ourmesh->uvlim[1][0] = ourmesh->uvlim[1][1] = -FHUGE;
62          meshbounds[0][0] = meshbounds[0][1] = meshbounds[0][2] = FHUGE;
63          meshbounds[1][0] = meshbounds[1][1] = meshbounds[1][2] = -FHUGE;
64          return(ourmesh);
# Line 290 | Line 290 | cvmeshbounds()                 /* set mesh boundaries */
290          for (i = 0; i < 3; i++)
291                  ourmesh->mcube.cuorg[i] = (meshbounds[1][i]+meshbounds[0][i] -
292                                                  ourmesh->mcube.cusize)*.5;
293 <        if (ourmesh->uvlim[0][0] >= ourmesh->uvlim[1][0]) {
293 >        if (ourmesh->uvlim[0][0] > ourmesh->uvlim[1][0]) {
294                  ourmesh->uvlim[0][0] = ourmesh->uvlim[0][1] = 0.;
295                  ourmesh->uvlim[1][0] = ourmesh->uvlim[1][1] = 0.;
296          } else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines