From 0ccf9401157b88ee52595f913f44b3ae51655841 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Mon, 17 May 2004 07:58:16 +0000 Subject: [PATCH] Minor Changes To Compile Even Without using namespace std. --- vcg/complex/trimesh/subset.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vcg/complex/trimesh/subset.h b/vcg/complex/trimesh/subset.h index 16d96f02..077f2d4d 100644 --- a/vcg/complex/trimesh/subset.h +++ b/vcg/complex/trimesh/subset.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.6 2004/05/14 11:43:17 turini +Changed mesh ClearFlag call. + Revision 1.5 2004/05/13 09:59:20 turini Added typedef typename in InsertedV @@ -84,10 +87,10 @@ struct InsertedV template void SubSet(STL_CONT & subSet, S_MESH_TYPE & m) { - vector< InsertedV > newVertices; + std::vector< InsertedV > newVertices; STL_CONT::iterator pfi; S_MESH_TYPE::VertexIterator vi; - vector redirect; + std::vector redirect; for(pfi=subSet.begin(); pfi!=subSet.end(); ++pfi) m.face.push_back(*(*pfi)); @@ -102,7 +105,7 @@ void SubSet(STL_CONT & subSet, S_MESH_TYPE & m) sort(newVertices.begin(), newVertices.end()); - vector< InsertedV >::iterator curr, next; + std::vector< InsertedV >::iterator curr, next; int pos=0; curr=next=newVertices.begin(); while(next!=newVertices.end()) @@ -114,7 +117,7 @@ void SubSet(STL_CONT & subSet, S_MESH_TYPE & m) next++; } - vector< InsertedV >::iterator newE=unique(newVertices.begin(), newVertices.end()); + std::vector< InsertedV >::iterator newE=unique(newVertices.begin(), newVertices.end()); for(curr=newVertices.begin(); curr!=newE; ++curr) m.vert.push_back(*((*curr).v));