From 371ff46282f98376429b635626f3316bf3444370 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 12 Apr 2013 09:16:49 +0000 Subject: [PATCH] added a missing RequireVFAdjacency and corrected a bug into the RequireXX for a couple of other adjacency... --- vcg/complex/base.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vcg/complex/base.h b/vcg/complex/base.h index 06079eec..31ad226e 100644 --- a/vcg/complex/base.h +++ b/vcg/complex/base.h @@ -602,10 +602,11 @@ bool HasPerMeshAttribute(const MESH_TYPE &m, std::string name){ template void RequireVFAdjacency (MeshType &m) { if(!tri::HasVFAdjacency (m)) throw vcg::MissingComponentException("VFAdjacency"); } +template void RequireVEAdjacency (MeshType &m) { if(!tri::HasVEAdjacency (m)) throw vcg::MissingComponentException("VEAdjacency"); } template void RequireFFAdjacency (MeshType &m) { if(!tri::HasFFAdjacency (m)) throw vcg::MissingComponentException("FFAdjacency"); } template void RequireEEAdjacency (MeshType &m) { if(!tri::HasEEAdjacency (m)) throw vcg::MissingComponentException("EEAdjacency"); } -template void RequireFEAdjacency (MeshType &m) { if(!tri::HasVEAdjacency (m)) throw vcg::MissingComponentException("VEAdjacency"); } -template void RequireFHAdjacency (MeshType &m) { if(!tri::HasVHAdjacency (m)) throw vcg::MissingComponentException("VHAdjacency"); } +template void RequireFEAdjacency (MeshType &m) { if(!tri::HasFEAdjacency (m)) throw vcg::MissingComponentException("FEAdjacency"); } +template void RequireFHAdjacency (MeshType &m) { if(!tri::HasFHAdjacency (m)) throw vcg::MissingComponentException("FHAdjacency"); } template void RequirePerVertexQuality (MeshType &m) { if(!tri::HasPerVertexQuality (m)) throw vcg::MissingComponentException("PerVertexQuality "); } template void RequirePerVertexNormal (MeshType &m) { if(!tri::HasPerVertexNormal (m)) throw vcg::MissingComponentException("PerVertexNormal "); }