From 39156cafe4faa4c0d4b1e9806ac0639f27d92a72 Mon Sep 17 00:00:00 2001 From: dibenedetto Date: Tue, 9 Jun 2009 18:23:50 +0000 Subject: [PATCH] completed support for WedgeColor. --- vcg/simplex/face/component.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vcg/simplex/face/component.h b/vcg/simplex/face/component.h index 59c3d871..89a28e5f 100644 --- a/vcg/simplex/face/component.h +++ b/vcg/simplex/face/component.h @@ -371,6 +371,7 @@ public: ColorType &C() { static ColorType dumcolor(vcg::Color4b::White); assert(0); return dumcolor; } const ColorType &cC() const { static ColorType dumcolor(vcg::Color4b::White); assert(0); return dumcolor; } ColorType &WC(const int) { static ColorType dumcolor(vcg::Color4b::White); assert(0); return dumcolor; } + const ColorType &cWC(const int) { static ColorType dumcolor(vcg::Color4b::White); assert(0); return dumcolor; } QualityType &Q() { static QualityType dummyQuality(0); assert(0); return dummyQuality; } const QualityType &cQ() const { static QualityType dummyQuality(0); assert(0); return dummyQuality; } @@ -411,6 +412,7 @@ public: typedef A ColorType; ColorType &WC(const int i) { return _color[i]; } const ColorType &WC(const int i) const { return _color[i]; } + const ColorType &cWC(const int i) const { return _color[i]; } template void ImportLocal(const LeftF & leftF){ WC() = leftF.cWC();T::ImportLocal(leftF);} @@ -421,6 +423,14 @@ private: ColorType _color[3]; }; +template class WedgeColor4b: public WedgeColor { + static void Name(std::vector & name){name.push_back(std::string("WedgeColor4b"));T::Name(name);} +}; + +template class WedgeColor4f: public WedgeColor { + static void Name(std::vector & name){name.push_back(std::string("WedgeColor4f"));T::Name(name);} +}; + template class Color4b: public Color { static void Name(std::vector & name){name.push_back(std::string("Color4b"));T::Name(name);} };