Corrected small bug in Smooth VertexCoordPlanarLaplacian

This commit is contained in:
Paolo Cignoni 2017-01-26 19:01:43 +01:00
parent 4529d09e58
commit 3df00a5ffe
1 changed files with 4 additions and 3 deletions

View File

@ -318,6 +318,7 @@ static void VertexCoordPlanarLaplacian(MeshType &m, int step, float AngleThrRad
for(vi=m.vert.begin();vi!=m.vert.end();++vi)
if(!(*vi).IsD() && TD[*vi].cnt>0 )
if(!SmoothSelected || (*vi).IsS())
(*vi).P()= TD[*vi].sum;