From 9e28c7b1e1c8ae3ad9bcdeffec80d61a71d5f336 Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 10 Feb 2014 10:57:12 +0000 Subject: [PATCH] simple change of the template name from MESH_TYPE to MeshType to standardize --- vcg/complex/base.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/vcg/complex/base.h b/vcg/complex/base.h index 7013490a..7bc11bb7 100644 --- a/vcg/complex/base.h +++ b/vcg/complex/base.h @@ -574,27 +574,27 @@ bool HasHOppAdjacency (const TriMesh < CType0, CType1, CType2, CType3> & /*m*/) // vcg::tri::HasPerFaceVFAdjacency< CType0, CType1 , CType2, CType3>(m) ; //} -template -bool HasPerVertexAttribute(const MESH_TYPE &m, std::string name){ - typename std::set< typename MESH_TYPE::PointerToAttribute>::const_iterator ai; - typename MESH_TYPE::PointerToAttribute h; +template +bool HasPerVertexAttribute(const MeshType &m, std::string name){ + typename std::set< typename MeshType::PointerToAttribute>::const_iterator ai; + typename MeshType::PointerToAttribute h; h._name = name; ai = m.vert_attr.find(h); return (ai!= m.vert_attr.end() ) ; } -template -bool HasPerFaceAttribute(const MESH_TYPE &m, std::string name){ - typename std::set< typename MESH_TYPE::PointerToAttribute>::const_iterator ai; - typename MESH_TYPE::PointerToAttribute h; +template +bool HasPerFaceAttribute(const MeshType &m, std::string name){ + typename std::set< typename MeshType::PointerToAttribute>::const_iterator ai; + typename MeshType::PointerToAttribute h; h._name = name; ai = m.face_attr.find(h); return (ai!= m.face_attr.end() ) ; } -template -bool HasPerMeshAttribute(const MESH_TYPE &m, std::string name){ - typename std::set< typename MESH_TYPE::PointerToAttribute>::const_iterator ai; - typename MESH_TYPE::PointerToAttribute h; +template +bool HasPerMeshAttribute(const MeshType &m, std::string name){ + typename std::set< typename MeshType::PointerToAttribute>::const_iterator ai; + typename MeshType::PointerToAttribute h; h._name = name; ai = m.mesh_attr.find(h); return (ai!= m.mesh_attr.end() ) ;