corrected an assert in PrincipalDirections static method:

from assert(m.HasVFAdjency());
to assert(tri::HasPerFaceVFAdjacency(m) && tri::HasPerVertexVFAdjacency(m));
This commit is contained in:
msabbadin 2012-04-02 14:42:56 +00:00
parent 8a631d48c1
commit 7c3687b8db
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public:
*/
static void PrincipalDirections(MeshType &m) {
assert(m.HasVFTopology());
assert(tri::HasPerFaceVFAdjacency(m) && tri::HasPerVertexVFAdjacency(m));
vcg::tri::UpdateNormals<MeshType>::PerVertexNormalized(m);