From 6625a319b911cc1b1e8df67335d5247ec8a8815a Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Thu, 21 Dec 2017 01:20:57 +0100 Subject: [PATCH] Disambiguated two Folded functions into IsFolded and FoldedNum --- .../algorithms/parametrization/distortion.h | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/vcg/complex/algorithms/parametrization/distortion.h b/vcg/complex/algorithms/parametrization/distortion.h index 95a980de..c4dc65ba 100644 --- a/vcg/complex/algorithms/parametrization/distortion.h +++ b/vcg/complex/algorithms/parametrization/distortion.h @@ -385,7 +385,7 @@ public: ///return the number of folded faces - static bool Folded(const FaceType *f) + static bool IsFolded(const FaceType *f) { ScalarType areaUV=AreaUV(f); /*if (areaUV<0) @@ -393,32 +393,30 @@ public: return (areaUV<0); } - static int Folded(const MeshType &m) + static int FoldedNum(const MeshType &m) { int folded=0; - for (size_t i=0;i(m.fn)/2); } static ScalarType MeshAngleDistortion(const MeshType &m) { ScalarType UDdist=0; - for (size_t i=0;i