From cc1c21fc7e9a28052c2dc9cb4c371cf8bc1348ff Mon Sep 17 00:00:00 2001 From: Oliver Gloth Date: Fri, 11 Jul 2014 22:11:34 +0200 Subject: [PATCH] feature edges and boundary edges are snapped to edges --- src/libengrid/laplacesmoother.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libengrid/laplacesmoother.cpp b/src/libengrid/laplacesmoother.cpp index 54afcf08..dd3f55c3 100644 --- a/src/libengrid/laplacesmoother.cpp +++ b/src/libengrid/laplacesmoother.cpp @@ -82,7 +82,8 @@ bool LaplaceSmoother::setNewPosition(vtkIdType id_node, vec3_t x_new) void LaplaceSmoother::featureCorrection(vtkIdType id_node, CadInterface *cad_interface, vec3_t &x_new) { EG_VTKDCN(vtkCharArray, node_type, m_Grid, "node_type"); - if (node_type->GetValue(id_node) == EG_FEATURE_EDGE_VERTEX) { + char type = node_type->GetValue(id_node); + if (type == EG_FEATURE_EDGE_VERTEX || type == EG_BOUNDARY_EDGE_VERTEX) { x_new = cad_interface->snapToEdge(x_new); } } -- 2.11.4.GIT