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

Comparing ray/src/cv/tmesh2rad.c (file contents):
Revision 2.11 by greg, Tue Mar 4 01:42:29 2003 UTC vs.
Revision 2.14 by schorsch, Sun Jul 27 22:12:02 2003 UTC

# Line 52 | Line 52 | typedef struct {
52   VERTEX  *vlist = NULL;          /* our vertex list */
53   int     nverts = 0;             /* number of vertices in our list */
54  
55 < #define novert(i)       ((i)<0|(i)>=nverts || !(vlist[i].flags&V_DEFINED))
55 > #define novert(i)       (((i)<0)|((i)>=nverts) || !(vlist[i].flags&V_DEFINED))
56  
57   #define CHUNKSIZ        128     /* vertex allocation chunk size */
58  
# Line 203 | Line 203 | register VERTEX        *v1, *v2, *v3;
203          static int      ntri = 0;
204          int             flatness = ISFLAT;
205          BARYCCM bvecs;
206 <        FLOAT   bvm[3][3];
206 >        RREAL   bvm[3][3];
207          register int    i;
208                                          /* compute barycentric coordinates */
209          if (v1->flags & v2->flags & v3->flags & (V_HASINDX|V_HASNORM))
# Line 270 | Line 270 | double x, y, z;
270                  if (vlist == NULL)
271                          vlist = (VERTEX *)malloc(nverts*sizeof(VERTEX));
272                  else
273 <                        vlist = (VERTEX *)realloc((char *)vlist,
273 >                        vlist = (VERTEX *)realloc((void *)vlist,
274                                          nverts*sizeof(VERTEX));
275                  if (vlist == NULL) {
276                          fprintf(stderr,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines