- added missing cast causing compiler error

This commit is contained in:
granzuglia 2014-09-25 17:11:45 +00:00
parent 66c7b45321
commit 9f647f2460
1 changed files with 3 additions and 2 deletions

View File

@ -73,8 +73,9 @@ static void VertexClamp(MeshType &m,
typename MeshType::ScalarType qmax)
{
tri::RequirePerVertexQuality(m);
for(VertexIterator vi=m.vert.begin();vi!=m.vert.end();++vi) if(!(*vi).IsD())
(*vi).Q()=min(qmax, max(qmin,(*vi).Q()));
for(VertexIterator vi=m.vert.begin();vi!=m.vert.end();++vi)
if(!(*vi).IsD())
(*vi).Q()=std::min(qmax, std::max(qmin,typename MeshType::ScalarType((*vi).Q())));
}
/** Normalize the vertex quality so that it fits in the specified range.