From: eap Date: Fri, 22 Feb 2013 13:04:17 +0000 (+0000) Subject: SALOME Forum: viscous layers builder: failed at the very first inflation step X-Git-Tag: pluginMGCleaner~111 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a4027283867d92acf9639038df36b71f6d51b52;p=modules%2Fsmesh.git SALOME Forum: viscous layers builder: failed at the very first inflation step http://www.salome-platform.org/forum/forum_10/537530484 --- 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 )