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 |
|
* |
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); |