Added correct overloading of ImportData for per vertex curvature component.

This commit is contained in:
Paolo Cignoni 2011-11-01 18:33:52 +00:00
parent 99a41cf446
commit dee3de3cc8
1 changed files with 9 additions and 1 deletions

View File

@ -389,8 +389,16 @@ public:
ScalarType &K2(){ return _curv.k2;}
const ScalarType &cK1() const {return _curv.k1;}
const ScalarType &cK2()const {return _curv.k2;}
template < class LeftV>
void ImportData(const LeftV & left ) {
if(LeftV::HasCurvatureDir()) {
PD1() = left.cPD1(); PD2() = left.cPD2();
K1() = left.cK1(); K2() = left.cK2();
}
TT::ImportData( left);
}
static bool HasCurvatureDir() { return true; }
static bool HasCurvatureDir() { return true; }
static void Name(std::vector<std::string> & name){name.push_back(std::string("CurvatureDir"));TT::Name(name);}
private: