diff --git a/vcg/complex/algorithms/update/curvature_fitting.h b/vcg/complex/algorithms/update/curvature_fitting.h index 7d134c92..a6904de0 100644 --- a/vcg/complex/algorithms/update/curvature_fitting.h +++ b/vcg/complex/algorithms/update/curvature_fitting.h @@ -226,8 +226,8 @@ class Quadric static void computeCurvature(MeshType & m) { Allocator::CompactVertexVector(m); - - if(!HasFVAdjacency(m)) throw vcg::MissingComponentException("FVAdjacency"); + tri::RequireCompactness(m); + tri::RequireVFAdjacency(m); vcg::tri::UpdateTopology::VertexFace(m);