From 2e7c97e90e28c150d05847b1ad36cf47a24c1a44 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 7 Nov 2008 15:36:19 +0000 Subject: [PATCH] Corrected the update cycle in the AddFace. Thanks to Michele Vannoni for pointing out this bug! --- vcg/complex/trimesh/allocate.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index 3ceb418c..e006cd55 100644 --- a/vcg/complex/trimesh/allocate.h +++ b/vcg/complex/trimesh/allocate.h @@ -169,6 +169,7 @@ Initial commit #define __VCGLIB_TRIALLOCATOR #include +#include #include #include #include @@ -401,8 +402,8 @@ namespace vcg { if(HasVFAdjacency(m)) for(int i = 0; i < (*fi).VN(); ++i) if ((*fi).cVFp(i)!=0) pu.Update((*fi).VFp(i)); - } - ++ii; + ++ii; + } ++fi; } VertexIterator vi;