From 75e3df439efb3eeca50e364647c10d1a941a16ad Mon Sep 17 00:00:00 2001 From: cignoni Date: Sat, 3 Apr 2004 13:35:51 +0000 Subject: [PATCH] minor changes --- vcg/simplex/vertexplus/component.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/vertexplus/component.h b/vcg/simplex/vertexplus/component.h index e0ed01df..287415bd 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.4 2004/03/31 13:15:28 cignoni +Added optional cpmponent + Revision 1.3 2004/03/31 12:28:37 ganovelli *** empty log message *** @@ -74,11 +77,13 @@ template class EmptyNormal: public T { public: typedef vcg::Point3s NormalType; NormalType &N() { static NormalType dummy_normal(0, 0, 0); return dummy_normal; } + static bool HasNormal() { return false; } }; template class Normal: public T { public: typedef A NormalType; NormalType &N() { return _norm; } + static bool HasNormal() { return true; } private: NormalType _norm; }; @@ -130,8 +135,8 @@ private: template class EmptyColor: public T { public: - typedef vcg::Point3f ColorType; - ColorType &C() { static ColorType color(0, 0, 0); return color; } + typedef vcg::Color4b ColorType; + ColorType &C() { static ColorType dumcolor(vcg::Color4b::White); return dumcolor; } static bool HasColor() { return false; } }; template class Color: public T {