the calls to HasFFAdjacency e HasVFAdjacency have been changed to override them for the optional attributes (see vcg/complex/trimesh/base.h)

This commit is contained in:
ganovelli 2006-10-27 11:06:29 +00:00
parent 132ffb7d82
commit 841b424b5c
1 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.31 2006/10/17 06:54:14 fiorin
Added #include <assert.h>
Revision 1.30 2006/10/02 09:31:47 ponchio Revision 1.30 2006/10/02 09:31:47 ponchio
usual typename missing usual typename missing
@ -285,13 +288,13 @@ namespace vcg {
for (fi=m.face.begin(); fi!=m.face.end(); ++fi) for (fi=m.face.begin(); fi!=m.face.end(); ++fi)
if(!(*fi).IsD()) if(!(*fi).IsD())
{ {
if(FaceType::HasFFAdjacency()) if(HasFFAdjacency(m))
{ {
if ((*fi).cFFp(0)!=0) pu.Update((*fi).FFp(0)); if ((*fi).cFFp(0)!=0) pu.Update((*fi).FFp(0));
if ((*fi).cFFp(1)!=0) pu.Update((*fi).FFp(1)); if ((*fi).cFFp(1)!=0) pu.Update((*fi).FFp(1));
if ((*fi).cFFp(2)!=0) pu.Update((*fi).FFp(2)); if ((*fi).cFFp(2)!=0) pu.Update((*fi).FFp(2));
} }
if(FaceType::HasVFAdjacency()) if(HasVFAdjacency(m))
{ {
//update pointers to chain of face incident in a vertex //update pointers to chain of face incident in a vertex
//update them only if they are different from zero //update them only if they are different from zero