diff --git a/vcg/complex/trimesh/update/curvature.h b/vcg/complex/trimesh/update/curvature.h index 27c72892..0aca633a 100644 --- a/vcg/complex/trimesh/update/curvature.h +++ b/vcg/complex/trimesh/update/curvature.h @@ -68,8 +68,6 @@ the vertex #include #include -#include - namespace vcg { namespace tri { @@ -87,7 +85,6 @@ class UpdateCurvature { public: - typedef typename MeshType MeshType; typedef typename MeshType::FaceType FaceType; typedef typename MeshType::FacePointer FacePointer; typedef typename MeshType::FaceIterator FaceIterator; @@ -301,17 +298,17 @@ public: If pointVSfaceInt==false the covariance is computed by (analytic)integration over the surface (slower) */ - typedef vcg::GridStaticPtr MeshGridType; - typedef vcg::GridStaticPtr PointsGridType; + typedef vcg::GridStaticPtr MeshGridType; + typedef vcg::GridStaticPtr PointsGridType; static void PrincipalDirectionsPCA(MeshType &m, ScalarType r, bool pointVSfaceInt = true) { - std::vector closests; - std::vector distances; - std::vector points; + std::vector closests; + std::vector distances; + std::vector points; VertexIterator vi; ScalarType area; MeshType tmpM; - std::vector::iterator ii; + typename std::vector::iterator ii; vcg::tri::TrivialSampler vs; MeshGridType mGrid; @@ -336,9 +333,9 @@ public: { vcg::trimesh::GetInSphereVertex< MeshType, - PointsGridType,std::vector, - std::vector, - std::vector >(tmpM,pGrid, (*vi).cP(),r ,closests,distances,points); + PointsGridType,std::vector, + std::vector, + std::vector >(tmpM,pGrid, (*vi).cP(),r ,closests,distances,points); A.Covariance(points,bp); A*=area*area/1000;