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.29 by greg, Tue Nov 27 00:42:26 2018 UTC vs.
Revision 2.30 by greg, Tue Nov 27 01:04:33 2018 UTC

# Line 511 | Line 511 | addmeshtri(                    /* add a new mesh triangle */
511          }
512                                                  /* double link */
513          pp = &mp->patch[pn[i=0]];
514 <        if (mp->patch[pn[1]].nj2tris < pp->nj2tris)
514 >        if (pp->nj2tris >= 256)
515                  pp = &mp->patch[pn[i=1]];
516 <        if (mp->patch[pn[2]].nj2tris < pp->nj2tris)
516 >        if (pp->nj2tris >= 256)
517                  pp = &mp->patch[pn[i=2]];
518          if (pp->nj2tris >= 256)
519                  error(INTERNAL, "too many patch triangles in addmeshtri");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines