corrected one bug in SmoothIterative
This commit is contained in:
parent
289fa731b9
commit
42b17bf904
|
@ -547,7 +547,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SmoothIterative(MeshType &mesh,int NDir=4,
|
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;
|
typedef typename MeshType::FaceType FaceType;
|
||||||
|
@ -569,6 +571,7 @@ public:
|
||||||
for (int j=0;j<f0->VN();j++)
|
for (int j=0;j<f0->VN();j++)
|
||||||
{
|
{
|
||||||
FaceType *f1=f0->FFp(j);
|
FaceType *f1=f0->FFp(j);
|
||||||
|
if (FixSelected && UseOnlyUnSelected && f1->IsS())continue;
|
||||||
assert(f1!=NULL);
|
assert(f1!=NULL);
|
||||||
if (f0==f1)continue;
|
if (f0==f1)continue;
|
||||||
TangVect.push_back(f1->PD1());
|
TangVect.push_back(f1->PD1());
|
||||||
|
|
Loading…
Reference in New Issue