SALOME Forum: viscous layers builder: failed at the very first inflation step

http://www.salome-platform.org/forum/forum_10/537530484
This commit is contained in:
eap 2013-02-22 13:04:17 +00:00
parent ab9600ccf0
commit 4a40272838

View File

@ -77,7 +77,7 @@
#include <cmath> #include <cmath>
#include <limits> #include <limits>
//#define __myDEBUG #define __myDEBUG
using namespace std; using namespace std;
@ -2074,7 +2074,7 @@ bool _ViscousBuilder::inflate(_SolidData& data)
{ {
if ( data._edges[i]->IsOnEdge() ) continue; if ( data._edges[i]->IsOnEdge() ) continue;
data._edges[i]->FindIntersection( *searcher, intersecDist, data._epsilon ); data._edges[i]->FindIntersection( *searcher, intersecDist, data._epsilon );
if ( geomSize > intersecDist ) if ( geomSize > intersecDist && intersecDist > 0 )
geomSize = intersecDist; geomSize = intersecDist;
} }
if ( data._stepSize > 0.3 * geomSize ) if ( data._stepSize > 0.3 * geomSize )