simple change of the template name from MESH_TYPE to MeshType to standardize

This commit is contained in:
Paolo Cignoni 2014-02-10 10:57:12 +00:00
parent 398f313495
commit 9e28c7b1e1
1 changed files with 12 additions and 12 deletions

View File

@ -574,27 +574,27 @@ bool HasHOppAdjacency (const TriMesh < CType0, CType1, CType2, CType3> & /*m*/)
// vcg::tri::HasPerFaceVFAdjacency< CType0, CType1 , CType2, CType3>(m) ;
//}
template <class MESH_TYPE>
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 <class MeshType>
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 <class MESH_TYPE>
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 <class MeshType>
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 <class MESH_TYPE>
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 <class MeshType>
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() ) ;