This commit is contained in:
Luigi Malomo 2021-03-09 22:51:32 +01:00
parent 3ef68d6009
commit 399ebd99ca
1 changed files with 2 additions and 3 deletions

View File

@ -96,11 +96,10 @@ public:
}
///calculate the BBox in UV space
static vcg::Box2<ScalarType> PerVertUVBox(MeshType &m)
static vcg::Box2<ScalarType> PerVertUVBox(const MeshType &m)
{
vcg::Box2<ScalarType> 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());