Lionel Maiaux (maiaux++at++mica.corys.fr)
Mon, 18 Nov 1996 12:08:42 +0100
I discovered a strange piece of code in the "retessellate" fonction of the
mesher.
To determine if vertices can be swaped, there is a test on PER_VERTEX colors
...
/* Make sure vertex colors are the same */
if (CBind == PFGS_PER_VERTEX &&
(!PFALMOST_EQUAL_VEC4(Colors[Cindex[vi]],
Colors[Cindex[vj]], SORTOF) ||
!PFALMOST_EQUAL_VEC4(Colors[Cindex[vi]],
Colors[Cindex[(vj+1) % 3]], SORTOF)))
return;
... but :
1) vi and vj are indexes in coordinate array (Coords), so I don't understand
how they can be used in Cindex array,
2) vi and vj are supposed to represent no common vertices but I think common
vertices should be first tested (in fact, all 3 vertices of the 2 triangles
should have the same color or the swap could be visible).
Thanks in advance to the Performer team for taking the time to confirm this
bug.
Regards.
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:58 PDT