From 42b17bf9049db6c0669d9efce9b419175caf41ce Mon Sep 17 00:00:00 2001 From: nico Date: Wed, 24 Apr 2019 11:50:48 +1000 Subject: [PATCH] corrected one bug in SmoothIterative --- .../algorithms/parametrization/tangent_field_operators.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/complex/algorithms/parametrization/tangent_field_operators.h b/vcg/complex/algorithms/parametrization/tangent_field_operators.h index 18b87574..0b4474fa 100644 --- a/vcg/complex/algorithms/parametrization/tangent_field_operators.h +++ b/vcg/complex/algorithms/parametrization/tangent_field_operators.h @@ -547,7 +547,9 @@ public: } static void SmoothIterative(MeshType &mesh,int NDir=4, - int NSteps=3,bool FixSelected=false) + int NSteps=3, + bool FixSelected=false, + bool UseOnlyUnSelected=false) { typedef typename MeshType::FaceType FaceType; @@ -569,6 +571,7 @@ public: for (int j=0;jVN();j++) { FaceType *f1=f0->FFp(j); + if (FixSelected && UseOnlyUnSelected && f1->IsS())continue; assert(f1!=NULL); if (f0==f1)continue; TangVect.push_back(f1->PD1());