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.4 by greg, Wed Apr 23 00:52:34 2003 UTC vs.
Revision 2.5 by greg, Wed May 14 03:08:22 2003 UTC

# Line 27 | Line 27 | typedef struct {
27   } TRIDATA;
28  
29   #define tdsize(fl)      ((fl)&MT_UV ? sizeof(TRIDATA) : \
30 <                                (fl)&MT_N ? sizeof(TRIDATA)-2*sizeof(FLOAT) : \
30 >                                (fl)&MT_N ? sizeof(TRIDATA)-6*sizeof(FLOAT) : \
31                                  sizeof(int)+sizeof(OBJECT))
32  
33   #define  OMARGIN        (10*FTINY)      /* margin around global cube */
# Line 285 | Line 285 | cvmeshbounds()                 /* set mesh boundaries */
285                  return;
286                                  /* fix coordinate bounds */
287          for (i = 0; i < 3; i++) {
288 <                if (meshbounds[0][i] >= meshbounds[1][i])
288 >                if (meshbounds[0][i] > meshbounds[1][i])
289                          error(USER, "no polygons in mesh");
290                  meshbounds[0][i] -= OMARGIN;
291                  meshbounds[1][i] += OMARGIN;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines