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.3 by greg, Fri Feb 18 13:11:35 1994 UTC vs.
Revision 2.4 by greg, Tue Mar 22 08:54:23 1994 UTC

# Line 299 | Line 299 | double x, y, z;
299   {
300          register int    i;
301  
302 <        if (id > nverts) {              /* get some more */
302 >        if (id >= nverts) {             /* get some more */
303                  i = nverts;
304 <                nverts = CHUNKSIZ*((id%CHUNKSIZ)+1);
304 >                nverts = CHUNKSIZ*((id/CHUNKSIZ)+1);
305                  if (vlist == NULL)
306                          vlist = (VERTEX *)malloc(nverts*sizeof(VERTEX));
307                  else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines