From 4a4027283867d92acf9639038df36b71f6d51b52 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 22 Feb 2013 13:04:17 +0000 Subject: [PATCH] SALOME Forum: viscous layers builder: failed at the very first inflation step http://www.salome-platform.org/forum/forum_10/537530484 --- src/StdMeshers/StdMeshers_ViscousLayers.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StdMeshers/StdMeshers_ViscousLayers.cxx b/src/StdMeshers/StdMeshers_ViscousLayers.cxx index b90271fb1..cfd8c459d 100644 --- a/src/StdMeshers/StdMeshers_ViscousLayers.cxx +++ b/src/StdMeshers/StdMeshers_ViscousLayers.cxx @@ -77,7 +77,7 @@ #include #include -//#define __myDEBUG +#define __myDEBUG using namespace std; @@ -2074,7 +2074,7 @@ bool _ViscousBuilder::inflate(_SolidData& data) { if ( data._edges[i]->IsOnEdge() ) continue; data._edges[i]->FindIntersection( *searcher, intersecDist, data._epsilon ); - if ( geomSize > intersecDist ) + if ( geomSize > intersecDist && intersecDist > 0 ) geomSize = intersecDist; } if ( data._stepSize > 0.3 * geomSize ) -- 2.39.2