23348: EDF 12916 - SALOME crashes when generating pyramids

This commit is contained in:
eap 2016-09-09 14:34:29 +03:00
parent e576eeb10d
commit 4bbb63cfb9

View File

@ -987,6 +987,8 @@ TopAbs_State SMESH_ElementSearcherImpl::GetPointState(const gp_Pnt& point)
// skip tangent intersections // skip tangent intersections
int nbTgt = 0; int nbTgt = 0;
if ( u_int2 != u2inters.end() )
{
const SMDS_MeshElement* prevFace = u_int1->second._face; const SMDS_MeshElement* prevFace = u_int1->second._face;
while ( ok && u_int2->second._coincides ) while ( ok && u_int2->second._coincides )
{ {
@ -999,6 +1001,7 @@ TopAbs_State SMESH_ElementSearcherImpl::GetPointState(const gp_Pnt& point)
ok = ( u_int2 != u2inters.end() ); ok = ( u_int2 != u2inters.end() );
} }
} }
}
if ( !ok ) break; if ( !ok ) break;
// skip intersections at the same point after tangent intersections // skip intersections at the same point after tangent intersections