From d57e9eda361d8d507cdfea700c37966fe1068734 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 23 Nov 2012 11:28:28 +0000 Subject: [PATCH] SALOME Forum http://www.salome-platform.org/forum/forum_10/651894792 Avoid a false detection of collision of a layer edge with a face which is behind the face the layer edge is based on --- src/StdMeshers/StdMeshers_ViscousLayers.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StdMeshers/StdMeshers_ViscousLayers.cxx b/src/StdMeshers/StdMeshers_ViscousLayers.cxx index f5bc7afbe..ac18c38ca 100644 --- a/src/StdMeshers/StdMeshers_ViscousLayers.cxx +++ b/src/StdMeshers/StdMeshers_ViscousLayers.cxx @@ -2858,7 +2858,7 @@ bool _LayerEdge::FindIntersection( SMESH_ElementSearcher& searcher, } if ( intFound ) { - if ( dist < segLen*(1.01)) + if ( dist < segLen*(1.01) && dist > -(_len-segLen) ) segmentIntersected = true; if ( distance > dist ) distance = dist, iFace = j; -- 2.39.2