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.8 by greg, Wed Jun 22 12:35:58 1994 UTC vs.
Revision 2.10 by greg, Sat Feb 22 02:07:23 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1994 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Convert a trianglular mesh into a Radiance description.
6   *
# Line 211 | Line 208 | register VERTEX        *v1, *v2, *v3;
208                  if (comp_baryc(&bvecs, v1->pos, v2->pos, v3->pos) < 0)
209                          return;
210                                          /* put out texture (if any) */
211 <        if (v1->flags & v2->flags & v3->flags & V_HASNORM) {
211 >        if (v1->flags & v2->flags & v3->flags & V_HASNORM &&
212 >                        !flat_tri(v1->pos, v2->pos, v3->pos,
213 >                                        v1->nor, v2->nor, v3->nor)) {
214                  printf("\n%s texfunc %s\n", mod, TEXNAME);
215                  mod = TEXNAME;
216                  printf("4 dx dy dz %s\n", TCALNAME);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines