minor changes
This commit is contained in:
parent
d11fc2356d
commit
75e3df439e
|
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$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
|
Revision 1.3 2004/03/31 12:28:37 ganovelli
|
||||||
*** empty log message ***
|
*** empty log message ***
|
||||||
|
|
||||||
|
|
@ -74,11 +77,13 @@ template <class T> class EmptyNormal: public T {
|
||||||
public:
|
public:
|
||||||
typedef vcg::Point3s NormalType;
|
typedef vcg::Point3s NormalType;
|
||||||
NormalType &N() { static NormalType dummy_normal(0, 0, 0); return dummy_normal; }
|
NormalType &N() { static NormalType dummy_normal(0, 0, 0); return dummy_normal; }
|
||||||
|
static bool HasNormal() { return false; }
|
||||||
};
|
};
|
||||||
template <class A, class T> class Normal: public T {
|
template <class A, class T> class Normal: public T {
|
||||||
public:
|
public:
|
||||||
typedef A NormalType;
|
typedef A NormalType;
|
||||||
NormalType &N() { return _norm; }
|
NormalType &N() { return _norm; }
|
||||||
|
static bool HasNormal() { return true; }
|
||||||
private:
|
private:
|
||||||
NormalType _norm;
|
NormalType _norm;
|
||||||
};
|
};
|
||||||
|
|
@ -130,8 +135,8 @@ private:
|
||||||
|
|
||||||
template <class T> class EmptyColor: public T {
|
template <class T> class EmptyColor: public T {
|
||||||
public:
|
public:
|
||||||
typedef vcg::Point3f ColorType;
|
typedef vcg::Color4b ColorType;
|
||||||
ColorType &C() { static ColorType color(0, 0, 0); return color; }
|
ColorType &C() { static ColorType dumcolor(vcg::Color4b::White); return dumcolor; }
|
||||||
static bool HasColor() { return false; }
|
static bool HasColor() { return false; }
|
||||||
};
|
};
|
||||||
template <class A, class T> class Color: public T {
|
template <class A, class T> class Color: public T {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue