ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/mesh.c
(Generate patch)

Comparing ray/src/common/mesh.c (file contents):
Revision 2.19 by schorsch, Sun Mar 28 20:33:12 2004 UTC vs.
Revision 2.22 by greg, Wed Dec 15 17:27:52 2010 UTC

# Line 36 | Line 36 | static lut_hashf_t cvhash;
36  
37   static unsigned long
38   cvhash(p)                               /* hash an encoded vertex */
39 < //MCVERT        *cvp;
40 < void    *p;
39 > /* MCVERT       *cvp; */
40 > const void      *p;
41   {
42 <        MCVERT  *cvp = p;
42 >        const MCVERT    *cvp = (const MCVERT *)p;
43          unsigned long   hval;
44          
45          if (!(cvp->fl & MT_V))
# Line 55 | Line 55 | void   *p;
55  
56   static int
57   cvcmp(vv1, vv2)                         /* compare encoded vertices */
58 < //register MCVERT       *v1, *v2;
58 > /* register MCVERT      *v1, *v2; */
59   const void      *vv1, *vv2;
60   {
61          const MCVERT    *v1 = vv1, *v2 = vv2;
# Line 620 | Line 620 | FILE   *fp;
620                  t2cnt += pp->nj2tris;
621          }
622          fprintf(fp, "Mesh statistics:\n");
623 <        fprintf(fp, "\t%ld materials\n", ms->nmats);
623 >        fprintf(fp, "\t%ld materials\n", (long)ms->nmats);
624          fprintf(fp, "\t%d patches (%.2f MBytes)\n", ms->npatches,
625                          (ms->npatches*sizeof(MESHPATCH) +
626                          vcnt*3*sizeof(uint32) +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines