]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
SALOME Forum: viscous layers builder: failed at the very first inflation step
authoreap <eap@opencascade.com>
Fri, 22 Feb 2013 13:04:17 +0000 (13:04 +0000)
committereap <eap@opencascade.com>
Fri, 22 Feb 2013 13:04:17 +0000 (13:04 +0000)
http://www.salome-platform.org/forum/forum_10/537530484

src/StdMeshers/StdMeshers_ViscousLayers.cxx

index b90271fb196e76a9e016320911ffde5811444f1b..cfd8c459d33b24d43af33c99f85340df8fcd3c7a 100644 (file)
@@ -77,7 +77,7 @@
 #include <cmath>
 #include <limits>
 
-//#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 )