added simple printout in debug of degenerate faces when found.

This commit is contained in:
Paolo Cignoni 2009-12-07 08:31:44 +00:00
parent 7030dbb151
commit f4d71c746d
1 changed files with 5 additions and 0 deletions

View File

@ -402,6 +402,11 @@ class ColladaMesh : public vcg::tri::TriMesh< std::vector<ColladaVertex>, std
jj += faceAttributeNum;
}
if( ! ( (m.face[ff].V(0) != m.face[ff].V(1)) &&
(m.face[ff].V(0) != m.face[ff].V(2)) &&
(m.face[ff].V(1) != m.face[ff].V(2)) ) )
QDEBUG("********* WARNING face %i, (%i %i %i) is a DEGENERATE FACE!",ff, m.face[ff].V(0) - &m.vert.front(), m.face[ff].V(1) - &m.vert.front(), m.face[ff].V(2) - &m.vert.front());
}
}
}