corrected an assert in PrincipalDirections static method:
from assert(m.HasVFAdjency()); to assert(tri::HasPerFaceVFAdjacency(m) && tri::HasPerVertexVFAdjacency(m));
This commit is contained in:
parent
8a631d48c1
commit
7c3687b8db
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue