From b9ad0d4aa2dc7d58b13c9b3660eef01fcc28ee12 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Fri, 7 Aug 2009 13:56:38 +0000 Subject: [PATCH] A function inside AddPointSet() was templated on CMeshO instead of the general type MeshType. This could lead to errors at compile time. CMeshO has been replaced with MeshType and now works fine. --- vcg/complex/trimesh/clustering.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/complex/trimesh/clustering.h b/vcg/complex/trimesh/clustering.h index ab6dc5cb..c1314479 100644 --- a/vcg/complex/trimesh/clustering.h +++ b/vcg/complex/trimesh/clustering.h @@ -346,7 +346,7 @@ class Clustering if( (st.v[0]!=st.v[1]) && (st.v[0]!=st.v[2]) && (st.v[1]!=st.v[2]) ) { // if we allow the duplication of faces we sort the vertex only partially (to maintain the original face orientation) if(DuplicateFaceParam) st.sortOrient(); - else st.sort(); + else st.sort(); TriSet.insert(st); } // printf("Inserted %8i triangles, clustered to %8i tri and %i cells\n",distance(m.face.begin(),fi),TriSet.size(),GridCell.size()); @@ -358,7 +358,7 @@ class Clustering void SelectPointSet(MeshType &m) { typename STDEXT::hash_map::iterator gi; - UpdateSelection::ClearVertex(m); + UpdateSelection::ClearVertex(m); for(gi=GridCell.begin();gi!=GridCell.end();++gi) { VertexType *ptr=(*gi).second.Ptr();