From 841b424b5c7422b41630cd0a9d2a11b6399f1a08 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Fri, 27 Oct 2006 11:06:29 +0000 Subject: [PATCH] the calls to HasFFAdjacency e HasVFAdjacency have been changed to override them for the optional attributes (see vcg/complex/trimesh/base.h) --- vcg/complex/trimesh/allocate.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index 1041a094..460b242b 100644 --- a/vcg/complex/trimesh/allocate.h +++ b/vcg/complex/trimesh/allocate.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.31 2006/10/17 06:54:14 fiorin +Added #include + Revision 1.30 2006/10/02 09:31:47 ponchio usual typename missing @@ -285,13 +288,13 @@ namespace vcg { for (fi=m.face.begin(); fi!=m.face.end(); ++fi) if(!(*fi).IsD()) { - if(FaceType::HasFFAdjacency()) + if(HasFFAdjacency(m)) { if ((*fi).cFFp(0)!=0) pu.Update((*fi).FFp(0)); if ((*fi).cFFp(1)!=0) pu.Update((*fi).FFp(1)); 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 them only if they are different from zero