- added missing cast causing compiler error
This commit is contained in:
parent
66c7b45321
commit
9f647f2460
|
@ -73,8 +73,9 @@ static void VertexClamp(MeshType &m,
|
||||||
typename MeshType::ScalarType qmax)
|
typename MeshType::ScalarType qmax)
|
||||||
{
|
{
|
||||||
tri::RequirePerVertexQuality(m);
|
tri::RequirePerVertexQuality(m);
|
||||||
for(VertexIterator vi=m.vert.begin();vi!=m.vert.end();++vi) if(!(*vi).IsD())
|
for(VertexIterator vi=m.vert.begin();vi!=m.vert.end();++vi)
|
||||||
(*vi).Q()=min(qmax, max(qmin,(*vi).Q()));
|
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.
|
/** Normalize the vertex quality so that it fits in the specified range.
|
||||||
|
|
Loading…
Reference in New Issue