small change to remove useless annoying warnings.

This commit is contained in:
Paolo Cignoni 2014-02-13 17:31:43 +00:00
parent 7600fc3ffb
commit f831ec8b77
1 changed files with 3 additions and 3 deletions

View File

@ -601,9 +601,9 @@ bool HasPerMeshAttribute(const MeshType &m, std::string name){
}
template <class MeshType> void RequireCompactness (MeshType &m) {
if(m.vert.size()!=m.vn) throw vcg::MissingCompactnessException("Vertex Vector Contains deleted elements");
if(m.edge.size()!=m.en) throw vcg::MissingCompactnessException("Edge Vector Contains deleted elements");
if(m.face.size()!=m.fn) throw vcg::MissingCompactnessException("Face Vector Contains deleted elements");
if(m.vert.size()!=size_t(m.vn)) throw vcg::MissingCompactnessException("Vertex Vector Contains deleted elements");
if(m.edge.size()!=size_t(m.en)) throw vcg::MissingCompactnessException("Edge Vector Contains deleted elements");
if(m.face.size()!=size_t(m.fn)) throw vcg::MissingCompactnessException("Face Vector Contains deleted elements");
}
template <class MeshType> void RequireVFAdjacency (MeshType &m) { if(!tri::HasVFAdjacency (m)) throw vcg::MissingComponentException("VFAdjacency"); }