From ce250c83a269ff3a9d75b8c2b41e672e4c8284df Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 14 Nov 2005 23:50:57 +0000 Subject: [PATCH] Added Incremental Mark --- vcg/simplex/vertexplus/component.h | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/vcg/simplex/vertexplus/component.h b/vcg/simplex/vertexplus/component.h index dec242ff..3ad56d72 100644 --- a/vcg/simplex/vertexplus/component.h +++ b/vcg/simplex/vertexplus/component.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.12 2005/11/12 18:35:49 cignoni +Changed HasFlag -> HasFlags + Revision 1.11 2005/11/01 18:17:52 cignoni Added an assert(0) in all the accesses to empty components @@ -128,7 +131,27 @@ template class Normal3s: public Normal {}; template class Normal3f: public Normal {}; template class Normal3d: public Normal {}; -/*-------------------------- NORMAL ----------------------------------------*/ + +/*-------------------------- INCREMENTAL MARK ----------------------------------------*/ + +template class EmptyMark: public T { +public: + static bool HasMark() { return false; } + static bool HasMarkOpt() { return false; } +}; +template class Mark: public T { +public: + static bool HasMark() { return true; } + static bool HasMarkOpt() { return true; } + inline void InitIMark() { _imark = 0; } + inline int & IMark() { return _imark;} + inline const int & IMark() const {return _imark;} + + private: + int _imark; +}; + +/*-------------------------- TEXTURE ----------------------------------------*/ template class EmptyTexture: public TT { public: