diff --git a/vcg/complex/algorithms/isotropic_remeshing.h b/vcg/complex/algorithms/isotropic_remeshing.h index 9f2ab451..9985e4ed 100644 --- a/vcg/complex/algorithms/isotropic_remeshing.h +++ b/vcg/complex/algorithms/isotropic_remeshing.h @@ -439,7 +439,7 @@ private: const Point3 & fNormal = NormalizedTriangleNormal(**it); - const auto tot = std::accumulate(++ff.begin(), ff.end(), 0.d, [&](const Scalartype acc, const FaceType * f) { + const auto tot = std::accumulate(++ff.begin(), ff.end(), 0.d, [&](const ScalarType acc, const FaceType * f) { return acc + (1 - math::Abs(fastAngle(n, NormalizedTriangleNormal(*f)))); });