diff --git a/vcg/complex/algorithms/stat.h b/vcg/complex/algorithms/stat.h index dd1e12b9..b328f352 100644 --- a/vcg/complex/algorithms/stat.h +++ b/vcg/complex/algorithms/stat.h @@ -69,7 +69,12 @@ class Stat typedef typename MeshType::FaceContainer FaceContainer; typedef typename vcg::Box3 Box3Type; - static std::pair ComputePerVertexQualityMinMax( MeshType & m) // V1.0 + static std::pair ComputePerVertexQualityMinMax( MeshType & m, float &minV, float &maxV) + { + std::pair pp=ComputePerVertexQualityMinMax(m); + minV=pp.first; maxV=pp.second; + } + static std::pair ComputePerVertexQualityMinMax( MeshType & m) { std::pair minmax = std::make_pair(std::numeric_limits::max(),-std::numeric_limits::max()); @@ -83,7 +88,12 @@ class Stat return minmax; } - static std::pair ComputePerFaceQualityMinMax( MeshType & m) // V1.0 + static std::pair ComputePerFaceQualityMinMax( MeshType & m, float &minV, float &maxV) + { + std::pair pp=ComputePerFaceQualityMinMax(m); + minV=pp.first; maxV=pp.second; + } + static std::pair ComputePerFaceQualityMinMax( MeshType & m) { std::pair minmax = std::make_pair(std::numeric_limits::max(),-std::numeric_limits::max());