Added sph49f, disabled ImportLocal for a while

This commit is contained in:
Paolo Cignoni 2009-03-25 07:51:28 +00:00
parent 8a454d266c
commit 2631ae5351
1 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,8 @@ public:
SphType &SH() { return _harmonics; } SphType &SH() { return _harmonics; }
const SphType &cSH() const { return _harmonics; } const SphType &cSH() const { return _harmonics; }
template < class LeftV> template < class LeftV>
void ImportLocal(const LeftV & left ) { SH() = left.cSH(); T::ImportLocal( left); } // void ImportLocal(const LeftV & left ) { SH() = left.cSH(); T::ImportLocal( left); }
void ImportLocal(const LeftV & left ) { T::ImportLocal( left); }
static bool HasSH() { return true; } static bool HasSH() { return true; }
static void Name(std::vector<std::string> & name){name.push_back(std::string("Spherical Harmonics"));T::Name(name);} static void Name(std::vector<std::string> & name){name.push_back(std::string("Spherical Harmonics"));T::Name(name);}
@ -37,6 +38,10 @@ template <class T> class Sph36f: public Sph<vcg::math::SphericalHarmonics<float,
public: static void Name(std::vector<std::string> & name){name.push_back(std::string("Sph36f"));T::Name(name);} public: static void Name(std::vector<std::string> & name){name.push_back(std::string("Sph36f"));T::Name(name);}
}; };
template <class T> class Sph49f: public Sph<vcg::math::SphericalHarmonics<float, 7>, T> {
public: static void Name(std::vector<std::string> & name){name.push_back(std::string("Sph49f"));T::Name(name);}
};
template <class T> class Sph9d: public Sph<vcg::math::SphericalHarmonics<double, 3>, T> { template <class T> class Sph9d: public Sph<vcg::math::SphericalHarmonics<double, 3>, T> {
public: static void Name(std::vector<std::string> & name){name.push_back(std::string("Sph9d"));T::Name(name);} public: static void Name(std::vector<std::string> & name){name.push_back(std::string("Sph9d"));T::Name(name);}
}; };