From 603c0433f1bf5a7c8a54dee14a09d4ed9cd3eeac Mon Sep 17 00:00:00 2001 From: Oliver Gloth Date: Wed, 13 Jun 2012 11:13:59 +0200 Subject: [PATCH] removed unwanted side-effect of bug fix --- src/libengrid/gridsmoother.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/libengrid/gridsmoother.cpp b/src/libengrid/gridsmoother.cpp index 6b60d59..6b1d9bc 100644 --- a/src/libengrid/gridsmoother.cpp +++ b/src/libengrid/gridsmoother.cpp @@ -353,7 +353,6 @@ void GridSmoother::computeNormals() m_GeoNormal = m_NodeNormal; relaxNormalVectors(); - /* for (vtkIdType id_node = 0; id_node < m_Grid->GetNumberOfPoints(); ++id_node) { if (m_NodeNormal[id_node].abs() < 0.1) { vec3_t n(0,0,0); @@ -369,13 +368,11 @@ void GridSmoother::computeNormals() n.normalise(); m_NodeNormal[id_node] = n; } - } - if (num_bcs[id_node] > 1) { - m_NodeNormal[id_node] = n_opt[id_node](m_NodeNormal[id_node]); + if (num_bcs[id_node] > 1) { + m_NodeNormal[id_node] = n_opt[id_node](m_NodeNormal[id_node]); + } } } - */ - } void GridSmoother::relaxNormalVectors() -- 2.11.4.GIT