--- ray/src/common/mesh.c 2003/03/14 21:27:45 2.4 +++ ray/src/common/mesh.c 2003/04/23 00:52:33 2.6 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: mesh.c,v 2.4 2003/03/14 21:27:45 greg Exp $"; +static const char RCSid[] = "$Id: mesh.c,v 2.6 2003/04/23 00:52:33 greg Exp $"; #endif /* * Mesh support routines @@ -197,10 +197,10 @@ OBJECT ti; int getmeshvert(vp, mp, vid, what) /* get triangle vertex from ID */ -MESHVERT*vp; -MESH *mp; -int4 vid; -int what; +MESHVERT *vp; +MESH *mp; +int4 vid; +int what; { int pn = vid >> 8; MESHPATCH *pp; @@ -504,8 +504,8 @@ register MESH *mp; if (mp->ldflags & IO_BOUNDS) { if (mp->mcube.cusize <= FTINY) return("illegal octree bounds in mesh"); - nouvbounds = (mp->uvlim[0][1] - mp->uvlim[0][0] <= FTINY || - mp->uvlim[1][1] - mp->uvlim[1][0] <= FTINY); + nouvbounds = (mp->uvlim[1][0] - mp->uvlim[0][0] <= FTINY || + mp->uvlim[1][1] - mp->uvlim[0][1] <= FTINY); } /* check octree */ if (mp->ldflags & IO_TREE) {