generalized ComputePerFaceQualityMinMax to use template parameters

This commit is contained in:
Nico Pietroni 2014-06-30 15:47:58 +00:00
parent af8ce3b7e2
commit 9a5b7bdbd3
1 changed files with 2 additions and 2 deletions

View File

@ -84,10 +84,10 @@ public:
minV=pp.first; maxV=pp.second;
}
static std::pair<float,float> ComputePerFaceQualityMinMax( MeshType & m)
static std::pair<ScalarType,ScalarType> ComputePerFaceQualityMinMax( MeshType & m)
{
tri::RequirePerFaceQuality(m);
std::pair<float,float> minmax = std::make_pair(std::numeric_limits<float>::max(),-std::numeric_limits<float>::max());
std::pair<ScalarType,ScalarType> minmax = std::make_pair(std::numeric_limits<ScalarType>::max(),-std::numeric_limits<ScalarType>::max());
FaceIterator fi;
for(fi = m.face.begin(); fi != m.face.end(); ++fi)