--- ray/src/common/mesh.c 2003/07/21 22:30:17 2.13 +++ ray/src/common/mesh.c 2004/01/30 00:08:31 2.16 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: mesh.c,v 2.13 2003/07/21 22:30:17 schorsch Exp $"; +static const char RCSid[] = "$Id: mesh.c,v 2.16 2004/01/30 00:08:31 greg Exp $"; #endif /* * Mesh support routines @@ -7,7 +7,9 @@ static const char RCSid[] = "$Id: mesh.c,v 2.13 2003/0 #include -#include "standard.h" +#include "rtio.h" +#include "rtmath.h" +#include "rterror.h" #include "octree.h" #include "object.h" #include "otypes.h" @@ -306,7 +308,7 @@ MESHVERT *vp; (vp->v[i] - mp->mcube.cuorg[i]) / mp->mcube.cusize); } - if (vp->fl & MT_N) + if (vp->fl & MT_N) /* assumes normalized! */ cv.norm = encodedir(vp->n); if (vp->fl & MT_UV) for (i = 0; i < 2; i++) {