diff --git a/vcg/simplex/vertex/component.h b/vcg/simplex/vertex/component.h index 33acf92f..834ba274 100644 --- a/vcg/simplex/vertex/component.h +++ b/vcg/simplex/vertex/component.h @@ -372,8 +372,19 @@ public: static void Name(std::vector & name){name.push_back(std::st +template +struct CurvatureDirBaseType{ + typedef Point3 VecType; + typedef S ScalarType; + CurvatureDirBaseType () {} + Point3max_dir,min_dir; // max and min curvature direction + S k1,k2;// max and min curvature values +}; + template class EmptyCurvatureData:public TT { public: + typedef vcg::Point2 CurvatureType; + typedef CurvatureDirBaseType CurvatureDirType; typedef float ScalarType; typedef Point3f VecType; @@ -446,14 +457,6 @@ public: static void Name(std::vector & name){name.push_back(std::st /*-------------------------- Curvature Direction ----------------------------------*/ -template -struct CurvatureDirBaseType{ - typedef Point3 VecType; - typedef S ScalarType; - CurvatureDirBaseType () {} - Point3max_dir,min_dir; // max and min curvature direction - S k1,k2;// max and min curvature values -}; template class EmptyCurvatureDir: public TT { public: