From f8e4bf2c947daa0e802a512fbecf346b8dd41cca Mon Sep 17 00:00:00 2001 From: cignoni Date: Sat, 12 Nov 2005 18:41:14 +0000 Subject: [PATCH] Added HasFlags and initialization of flags at construction. --- vcg/simplex/vertex/base.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/vertex/base.h b/vcg/simplex/vertex/base.h index 69637e82..fab00a39 100644 --- a/vcg/simplex/vertex/base.h +++ b/vcg/simplex/vertex/base.h @@ -23,6 +23,9 @@ /**************************************************************************** History $Log: not supported by cvs2svn $ +Revision 1.25 2005/10/14 13:25:50 cignoni +Added cVFp member + Revision 1.24 2005/10/06 14:26:39 pietroni added getBBox method @@ -67,6 +70,9 @@ Revision 1.12 2004/05/10 13:31:13 ganovelli function for edge adjacency added $Log: not supported by cvs2svn $ +Revision 1.25 2005/10/14 13:25:50 cignoni +Added cVFp member + Revision 1.24 2005/10/06 14:26:39 pietroni added getBBox method @@ -808,6 +814,10 @@ Reflection is a mechanism making it possible to investigate yourself. Reflection **/ //@{ +static bool HasFlags() { // Note the plural because ONE vertex has many Flags (but just one color, normal, mark, quality ecc.) + return true; +} + static bool HasNormal() { #ifdef __VCGLIB_VERTEX_VN return true; @@ -932,9 +942,9 @@ inline void Convert( VERT_TYPE &v ) return _p < ve._p; } inline VERTEX_TYPE() { -#ifdef _DEBUG +//#ifdef _DEBUG _flags=0; -#endif +//#endif }; };