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.33 by greg, Sat Apr 4 04:34:08 2020 UTC vs.
Revision 2.34 by greg, Tue Jul 14 23:13:50 2020 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines