From 2f592ca2f8ea78dc71f3fdcc0725bb56670e59ff Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 28 Nov 2006 22:35:29 +0000 Subject: [PATCH] Added Consistency check in the HasVFAdj static function --- vcg/complex/trimesh/base.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/base.h b/vcg/complex/trimesh/base.h index 500badc5..70bc9d0b 100644 --- a/vcg/complex/trimesh/base.h +++ b/vcg/complex/trimesh/base.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.24 2006/11/07 11:29:23 cignoni +Corrected some errors in the reflections Has*** functions + Revision 1.23 2006/10/27 11:08:18 ganovelli added override to HasFFAdjacency , HasVFAdjacency for the optional attributes (see also complex/trimesh/allocate.h) @@ -338,7 +341,10 @@ template < class VertContainerType, class FaceContainerType > bool HasFFAdjacency (const TriMesh < VertContainerType , FaceContainerType> & /*m*/) {return FaceContainerType::value_type::HasFFAdjacency();} template < class VertContainerType, class FaceContainerType > -bool HasVFAdjacency (const TriMesh < VertContainerType , FaceContainerType> & /*m*/) {return FaceContainerType::value_type::HasVFAdjacency();} +bool HasVFAdjacency (const TriMesh < VertContainerType , FaceContainerType> & /*m*/) { + assert(FaceContainerType::value_type::HasVFAdjacency() == VertContainerType::value_type::HasVFAdjacency()); + return FaceContainerType::value_type::HasVFAdjacency(); +} /*@}*/ /*@}*/ } // end namespace