minor changes in InitByCurvature function

This commit is contained in:
Nico Pietroni 2015-09-14 12:01:47 +00:00
parent 05516b1e04
commit 0c826ad949
1 changed files with 5 additions and 1 deletions

View File

@ -389,7 +389,10 @@ public:
vcg::tri::CrossField<MeshType>::MakeDirectionFaceCoherent(mesh,true);
}
static void InitByCurvature(MeshType & mesh,int Nring)
static void InitByCurvature(MeshType & mesh,
int Nring,
bool UpdateFaces=true)
{
tri::RequirePerVertexCurvatureDir(mesh);
@ -409,6 +412,7 @@ public:
mesh.vert[i].K1()=PV1(i,0);
mesh.vert[i].K2()=PV2(i,0);
}
if (!UpdateFaces)return;
vcg::tri::CrossField<MeshType>::SetFaceCrossVectorFromVert(mesh);
InitQualityByAnisotropyDir(mesh);
}