From 5eb0e6cff6c8ec74a6c5279feb7c037bf6b8463a Mon Sep 17 00:00:00 2001 From: Luigi Malomo Date: Mon, 29 Nov 2021 10:08:58 +0100 Subject: [PATCH] stat bugfix --- vcg/complex/algorithms/stat.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vcg/complex/algorithms/stat.h b/vcg/complex/algorithms/stat.h index e7c4e787..1b402af7 100644 --- a/vcg/complex/algorithms/stat.h +++ b/vcg/complex/algorithms/stat.h @@ -73,7 +73,6 @@ public: explicit function that does it. This function should take a const Mesh. **/ tri::RequirePerVertexQuality(m); - std::pair minmax = std::make_pair(std::numeric_limits::max(), std::numeric_limits::lowest()); @@ -102,7 +101,7 @@ public: std::pair minmax = std::make_pair(std::numeric_limits::max(), std::numeric_limits::lowest()); - ForEachTetra(m, [&minmax] (const FaceType & f) { + ForEachFace(m, [&minmax] (const FaceType & f) { if (f.cQ() < minmax.first) minmax.first = f.cQ(); if (f.cQ() > minmax.second)