From 63e17e2eca74543f587f85bdfc63ac0f048bc0f1 Mon Sep 17 00:00:00 2001 From: Oliver Gloth Date: Sat, 18 May 2013 00:21:40 +0200 Subject: [PATCH] feature magic is an amplification factor for edge sharpening (not corners) --- src/libengrid/laplacesmoother.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libengrid/laplacesmoother.cpp b/src/libengrid/laplacesmoother.cpp index 797db3d..d88bac0 100644 --- a/src/libengrid/laplacesmoother.cpp +++ b/src/libengrid/laplacesmoother.cpp @@ -147,7 +147,7 @@ void LaplaceSmoother::featureCorrection(vtkIdType id_node, CadInterface *cad_int vec3_t n = cad_interface->getLastNormal(); double l = cl->GetValue(id_node); double eps = 0.01*l; - vec3_t mv = l*m_NodeNormal[id_node]; + vec3_t mv = m_FeatureMagic*l*m_NodeNormal[id_node]; mv -= (n*mv)*n; if (checkVector(mv)) { @@ -188,7 +188,7 @@ void LaplaceSmoother::featureCorrection(vtkIdType id_node, CadInterface *cad_int } } if (hits > 0) { - x_new = x1 + L1*m_FeatureMagic*amp*mv; + x_new = x1 + L1*amp*mv; x_new = cad_interface->projectNode(id_node, x_new, n, false, m_CorrectCurvature); if (cad_interface->failed()) { cout << "bad!" << endl; -- 2.11.4.GIT