--- ray/src/rt/o_mesh.c 2003/06/20 00:25:50 2.6 +++ ray/src/rt/o_mesh.c 2003/06/30 14:59:12 2.8 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: o_mesh.c,v 2.6 2003/06/20 00:25:50 greg Exp $"; +static const char RCSid[] = "$Id: o_mesh.c,v 2.8 2003/06/30 14:59:12 schorsch Exp $"; #endif /* * Routines for computing ray intersections with meshes. @@ -21,10 +21,10 @@ static const char RCSid[] = "$Id: o_mesh.c,v 2.6 2003/ #include "copyright.h" -#include "ray.h" +#include +#include "ray.h" #include "mesh.h" - #include "tmesh.h" @@ -52,7 +52,7 @@ OBJREC *o; /* get mesh instance */ edge_cache.mi = getmeshinst(edge_cache.o = o, IO_ALL); /* clear edge cache */ - bzero((void *)edge_cache.cache, sizeof(edge_cache.cache)); + memset((void *)edge_cache.cache, '\0', sizeof(edge_cache.cache)); } @@ -153,7 +153,7 @@ register RAY *r; int flags; MESHVERT tv[3]; OBJECT tmod; - FLOAT wt[3]; + RREAL wt[3]; int i; /* get the mesh instance */ prep_edge_cache(o);