mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
23348: EDF 12916 - SALOME crashes when generating pyramids
This commit is contained in:
parent
e576eeb10d
commit
4bbb63cfb9
@ -987,16 +987,19 @@ TopAbs_State SMESH_ElementSearcherImpl::GetPointState(const gp_Pnt& point)
|
|||||||
|
|
||||||
// skip tangent intersections
|
// skip tangent intersections
|
||||||
int nbTgt = 0;
|
int nbTgt = 0;
|
||||||
const SMDS_MeshElement* prevFace = u_int1->second._face;
|
if ( u_int2 != u2inters.end() )
|
||||||
while ( ok && u_int2->second._coincides )
|
|
||||||
{
|
{
|
||||||
if ( SMESH_MeshAlgos::GetCommonNodes(prevFace , u_int2->second._face).empty() )
|
const SMDS_MeshElement* prevFace = u_int1->second._face;
|
||||||
ok = false;
|
while ( ok && u_int2->second._coincides )
|
||||||
else
|
|
||||||
{
|
{
|
||||||
nbTgt++;
|
if ( SMESH_MeshAlgos::GetCommonNodes(prevFace , u_int2->second._face).empty() )
|
||||||
u_int2++;
|
ok = false;
|
||||||
ok = ( u_int2 != u2inters.end() );
|
else
|
||||||
|
{
|
||||||
|
nbTgt++;
|
||||||
|
u_int2++;
|
||||||
|
ok = ( u_int2 != u2inters.end() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( !ok ) break;
|
if ( !ok ) break;
|
||||||
|
Loading…
Reference in New Issue
Block a user