From 9a31f6318d23e846b4a8d351edbf72343d1aa200 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 3 Apr 2008 22:47:10 +0000 Subject: [PATCH] template the reorder functions on the vector types (for ocf) --- vcg/complex/trimesh/allocate.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index 77fd1619..b3cccc7f 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.40 2008/03/11 09:22:07 cignoni +Completed the garbage collecting functions CompactVertexVector and CompactFaceVector. + Revision 1.39 2007/12/11 20:18:55 cignoni forgotten required std:: @@ -167,11 +170,11 @@ namespace vcg { // Placeholder. // this one is called by the Compact and overridden by more specialized functions for OCF classes. // that manage also the additional types - template - void ReorderFace( std::vector &newVertIndex, vector_type &vert) + template + void ReorderFace( std::vector &newVertIndex, std::vector &vert) {} - template - void ReorderVert( std::vector &newVertIndex, vector_type &vert) + template + void ReorderVert( std::vector &newVertIndex, std::vector &vert) {} /*@{*/ @@ -405,7 +408,7 @@ namespace vcg { // call a templated reordering function that manage any additional data internally stored by the vector // for the default std::vector no work is needed (some work is typically needed for the OCF stuff) - ReorderVert(newVertIndex,m.vert); + ReorderVert(newVertIndex,m.vert); m.vert.resize(m.vn); FaceIterator fi;