throw exception -> RequireXXXX refactoring

This commit is contained in:
Paolo Cignoni 2014-08-09 00:14:42 +00:00
parent 3b38917e95
commit f456e8aca3
1 changed files with 2 additions and 2 deletions

View File

@ -226,8 +226,8 @@ class Quadric
static void computeCurvature(MeshType & m)
{
Allocator<MeshType>::CompactVertexVector(m);
if(!HasFVAdjacency(m)) throw vcg::MissingComponentException("FVAdjacency");
tri::RequireCompactness(m);
tri::RequireVFAdjacency(m);
vcg::tri::UpdateTopology<MeshType>::VertexFace(m);