From 655ae0ce8bdff226c2759845ff4e1e3cff841ff7 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Fri, 29 Sep 2006 15:11:41 +0000 Subject: [PATCH] Fixed a few bug. --- vcg/complex/trimesh/allocate.h | 334 ++++++++++++++++++++++++++++++++- 1 file changed, 331 insertions(+), 3 deletions(-) diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index aeb98252..bff7c5ae 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.28 2006/09/29 14:40:22 cignoni +Removed a useless, wrong version of AddFaces + Revision 1.27 2006/02/28 12:22:48 spinelli fix bug end iterator++ @@ -234,9 +237,334 @@ namespace vcg { static FaceIterator AddFaces(MeshType &m, int n,std::vector &local_vec) { PointerUpdater pu; - return AddFaces(m,n,pu,local_var); - for(std::vector::iterator fi=local_vec.begin();fi!=local_vec.end();++fi) - pu.Update(*fi); + FaceIterator f_ret= AddFaces(m,n,pu); + + std::vector::iterator fi; + for(fi=local_vec.begin();fi!=local_vec.end();++fi) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + pu.Update(**fi); + return f_ret; } /** Function to add n faces to the mesh.