From a6269df8cda4381a62e63a94c91a4b03ab3ecfdf Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 31 Mar 2004 14:43:56 +0000 Subject: [PATCH] bug in update of VF adj --- vcg/complex/trimesh/allocate.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index dd8a522b..664ecd11 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.3 2004/03/12 15:25:29 cignoni +Corrected bug on the return of a wrong iterator + Revision 1.2 2004/03/03 15:35:52 cignoni Yet another cr lf mismatch @@ -182,11 +185,7 @@ static FaceIterator AddFaces(MeshType &m, int n, PointerUpdater &pu if(!(*vi).IsD()) { if(VertexType::HasVFAdjacency()) - { - pu.Update((*fi).F(0)); - pu.Update((*fi).F(1)); - pu.Update((*fi).F(2)); - } + pu.Update((*vi).Fp()); } // e poiche' lo spazio e' cambiato si ricalcola anche last da zero unsigned int siz=m.face.size()-n;