From f456e8aca3048f8b6b903d5eaa6ba5b49fd43d03 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sat, 9 Aug 2014 00:14:42 +0000 Subject: [PATCH] throw exception -> RequireXXXX refactoring --- vcg/complex/algorithms/update/curvature_fitting.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);