From a9bc96b79806eb8b6eb6a254def50453b15b09e3 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Fri, 23 Feb 2018 16:41:07 +0100 Subject: [PATCH] corrected missing typename --- vcg/complex/algorithms/clean.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/complex/algorithms/clean.h b/vcg/complex/algorithms/clean.h index 4ccd86ce..a72c013e 100644 --- a/vcg/complex/algorithms/clean.h +++ b/vcg/complex/algorithms/clean.h @@ -1831,8 +1831,8 @@ public: vcg::Plane3 plane; vcg::FitPlaneToPointSet(point, plane); float avgDot = 0; - for (VertexSet::iterator j = nearVertex.begin(); j != nearVertex.end(); j++) - avgDot += plane.Direction().dot((*j)->N()); + for (auto nvp : nearVertex.end()) + avgDot += plane.Direction().dot((*nvp)->N()); avgDot /= nearVertex.size(); typename MeshType::VertexType::NormalType normal; if (avgDot < 0)