Added some missing importLocal functions

This commit is contained in:
Paolo Cignoni 2009-08-30 13:54:06 +00:00
parent 733caf9478
commit 415228fcd4
2 changed files with 9 additions and 1 deletions

View File

@ -468,7 +468,7 @@ public:
QualityType &Q() { return _quality; }
const QualityType &cQ() const { return _quality; }
template <class RightF>
void ImportLocal(const RightF & rightF){ Q() = rightF.cQ();T::ImportLocal(rightF);}
void ImportLocal(const RightF & rightF){ if(RightF::HasFaceQuality()) Q() = rightF.cQ();T::ImportLocal(rightF);}
inline void Alloc(const int & ns){T::Alloc(ns);}
inline void Dealloc(){T::Dealloc();}
static bool HasFaceQuality() { return true; }

View File

@ -392,6 +392,8 @@ public:
static bool HasCurvatureOcf() { return false; }
static bool HasCurvature() { return false; }
static bool HasCurvatureDir() { return false; }
template < class LeftV>
void ImportLocal(const LeftV & left ) { TT::ImportLocal( left); }
static void Name(std::vector<std::string> & name){TT::Name(name);}
};
@ -409,6 +411,8 @@ public:
static bool HasCurvatureOcc() { return false; }
static bool HasCurvatureOcf() { return false; }
static bool HasCurvature() { return false; }
template < class LeftV>
void ImportLocal(const LeftV & left ) { TT::ImportLocal( left); }
static void Name(std::vector<std::string> & name){TT::Name(name);}
};
@ -462,6 +466,8 @@ public:
const float &cK2()const { static float dummy(0);assert(0);return dummy;}
static bool HasCurvatureDir() { return false; }
template < class LeftV>
void ImportLocal(const LeftV & left ) { TT::ImportLocal( left); }
static void Name(std::vector<std::string> & name){TT::Name(name);}
};
@ -509,6 +515,8 @@ public:
static bool HasRadius() { return false; }
static bool HasRadiusOcf() { return false; }
template < class LeftV>
void ImportLocal(const LeftV & left ) { T::ImportLocal( left); }
static void Name(std::vector<std::string> & name){ T::Name(name);}
};
/*-------------------------- Radius ----------------------------------*/