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());