corrected bug in the face laplacian normal smoothing

This commit is contained in:
Paolo Cignoni 2012-05-06 15:31:07 +00:00
parent 4778217ec5
commit 64d7f31279
1 changed files with 20 additions and 20 deletions

View File

@ -71,7 +71,7 @@ public:
// This is precisely what curvature flow does.
// Curvature flow smoothes the surface by moving along the surface
// normal n with a speed equal to the mean curvature
void VertexCoordLaplacianCurvatureFlow(MeshType &m, int step, ScalarType delta)
void VertexCoordLaplacianCurvatureFlow(MeshType &/*m*/, int /*step*/, ScalarType /*delta*/)
{
}
@ -962,13 +962,13 @@ static void FaceNormalLaplacianFF(MeshType &m, int step=1, bool SmoothSelected=f
FaceIterator fi;
tri::UpdateNormals<MeshType>::AreaNormalizeFace(m);
for(int i=0;i<step;++i)
for(int iStep=0;iStep<step;++iStep)
{
for(fi=m.face.begin();fi!=m.face.end();++fi) if(!(*fi).IsD())
{
CoordType normalSum=(*fi).N();
for(i=0;i<3;++i)
for(int i=0;i<3;++i)
normalSum+=(*fi).FFp(i)->N();
TDF[*fi].m=normalSum;