From c1e19b4b5584308da2e933e70612e601983bb9ab Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Fri, 25 May 2012 13:19:03 +0000 Subject: [PATCH] added assert(0) for cVFi function if does not exixts the component --- vcg/simplex/vertex/component.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/vertex/component.h b/vcg/simplex/vertex/component.h index 6ee9db6a..c3d29a82 100644 --- a/vcg/simplex/vertex/component.h +++ b/vcg/simplex/vertex/component.h @@ -111,8 +111,8 @@ public: typename TT::FacePointer &VFp() { static typename TT::FacePointer fp=0; assert(0); return fp; } const typename TT::FacePointer cVFp() const { static typename TT::FacePointer fp=0; assert(0); return fp; } - int &VFi(){static int z=0; return z;} - int cVFi() const {static int z=0; return z;} + int &VFi(){static int z=0; assert(0); return z;} + int cVFi() const {static int z=0; assert(0); return z;} static bool HasVFAdjacency() { return false; } typename TT::EdgePointer &VEp() { static typename TT::EdgePointer ep=0; assert(0); return ep; } @@ -466,6 +466,7 @@ public: typename T::FacePointer &VFp() {return _fp; } typename T::FacePointer const cVFp() const {return _fp; } int &VFi() {return _zp; } + int const &cVFi() const {return _zp; } template < class LeftV> void ImportData(const LeftV & left ) { T::ImportData( left); } static bool HasVFAdjacency() { return true; }