From 399ebd99ca2fdecb05bfbe0f14bfa29ddb6c3af6 Mon Sep 17 00:00:00 2001 From: Luigi Malomo Date: Tue, 9 Mar 2021 22:51:32 +0100 Subject: [PATCH] const --- vcg/complex/algorithms/parametrization/uv_utils.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vcg/complex/algorithms/parametrization/uv_utils.h b/vcg/complex/algorithms/parametrization/uv_utils.h index 6318310e..e93bcedf 100644 --- a/vcg/complex/algorithms/parametrization/uv_utils.h +++ b/vcg/complex/algorithms/parametrization/uv_utils.h @@ -96,11 +96,10 @@ public: } ///calculate the BBox in UV space - static vcg::Box2 PerVertUVBox(MeshType &m) + static vcg::Box2 PerVertUVBox(const MeshType &m) { vcg::Box2 UVBox; - VertexIterator vi; - for (vi=m.vert.begin();vi!=m.vert.end();vi++) + for (auto vi=m.vert.begin();vi!=m.vert.end();vi++) { if ((*vi).IsD()) continue; UVBox.Add((*vi).T().P());