Fixed a few bug.

This commit is contained in:
Paolo Cignoni 2006-09-29 15:11:41 +00:00
parent aabba26c14
commit 655ae0ce8b
1 changed files with 331 additions and 3 deletions

View File

@ -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<FacePointer *> &local_vec)
{
PointerUpdater<FacePointer> pu;
return AddFaces(m,n,pu,local_var);
for(std::vector<FacePointer *>::iterator fi=local_vec.begin();fi!=local_vec.end();++fi)
pu.Update(*fi);
FaceIterator f_ret= AddFaces(m,n,pu);
std::vector<FacePointer *>::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.