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

Comparing ray/src/cv/obj2rad.c (file contents):
Revision 2.19 by greg, Wed Apr 23 00:52:33 2003 UTC vs.
Revision 2.20 by schorsch, Thu Jun 26 00:58:09 2003 UTC

# Line 29 | Line 29 | FVECT  *vlist;                 /* our vertex list */
29   int     nvs;                    /* number of vertices in our list */
30   FVECT   *vnlist;                /* vertex normal list */
31   int     nvns;
32 < FLOAT   (*vtlist)[2];           /* map vertex list */
32 > RREAL   (*vtlist)[2];           /* map vertex list */
33   int     nvts;
34  
35   typedef int     VNDX[3];        /* vertex index (point,map,normal) */
# Line 470 | Line 470 | register int   ac;
470   register char   **av;
471   {
472          VNDX    vi;
473 <        FLOAT   *p0, *p1;
473 >        RREAL   *p0, *p1;
474          FVECT   v1, v2, nsum, newn;
475          double  d;
476          register int    i;
# Line 555 | Line 555 | char   *v1, *v2, *v3;
555          char    *mod;
556          VNDX    v1i, v2i, v3i;
557          BARYCCM bvecs;
558 <        FLOAT   bcoor[3][3];
558 >        RREAL   bcoor[3][3];
559          int     texOK, patOK;
560          int     flatness;
561          register int    i;
# Line 712 | Line 712 | double x, y;
712   {
713          if (!(nvts%CHUNKSIZ)) {         /* allocate next block */
714                  if (nvts == 0)
715 <                        vtlist = (FLOAT (*)[2])malloc(CHUNKSIZ*2*sizeof(FLOAT));
715 >                        vtlist = (RREAL (*)[2])malloc(CHUNKSIZ*2*sizeof(RREAL));
716                  else
717 <                        vtlist = (FLOAT (*)[2])realloc((void *)vtlist,
718 <                                        (nvts+CHUNKSIZ)*2*sizeof(FLOAT));
717 >                        vtlist = (RREAL (*)[2])realloc((void *)vtlist,
718 >                                        (nvts+CHUNKSIZ)*2*sizeof(RREAL));
719                  if (vtlist == NULL) {
720                          fprintf(stderr,
721                          "Out of memory while allocating texture vertex %d\n",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines