diff --git a/vcg/simplex/vertex/component_ocf.h b/vcg/simplex/vertex/component_ocf.h index 5bc39475..72b42fbd 100644 --- a/vcg/simplex/vertex/component_ocf.h +++ b/vcg/simplex/vertex/component_ocf.h @@ -435,8 +435,17 @@ public: ScalarTypeCur &Kh(){ assert((*this).Base().CurvatureEnabled); return (*this).Base().CuV[(*this).Index()][0]; } ScalarTypeCur &Kg(){ assert((*this).Base().CurvatureEnabled); return (*this).Base().CuV[(*this).Index()][1]; } - ScalarTypeCur cKh() const { assert((*this).Base().CurvatureEnabled); return (*this).Base().CuV[(*this).Index()][0]; } - ScalarTypeCur cKg() const { assert((*this).Base().CurvatureEnabled); return (*this).Base().CuV[(*this).Index()][1]; } + ScalarTypeCur cKh() const + { + assert((*this).Base().CurvatureEnabled); + return (*this).Base().CuV[(*this).Index()][0]; + } + + ScalarTypeCur cKg() const + { + assert((*this).Base().CurvatureEnabled); + return (*this).Base().CuV[(*this).Index()][1]; + } template void ImportData(const RightVertexType & rightV){ @@ -448,7 +457,11 @@ public: TT::ImportData(rightV); } - inline bool IsCurvatureEnabled( ) const { return this->Base().IsCurvatureDirEnabled(); } + inline bool IsCurvatureEnabled( ) const + { + return this->Base().IsCurvatureEnabled(); + } + static bool HasCurvature() { return true; } static bool HasCurvatureOcf() { return true; } };