IPAL54379: NETGEN crashes SALOME if all faces belong to a sub-mesh

This commit is contained in:
eap 2018-04-12 16:46:52 +03:00
parent a4a095ed06
commit 77db9b7bed

View File

@ -3042,8 +3042,9 @@ bool NETGENPlugin_Mesher::Compute()
}
// Build viscous layers
if ( _isViscousLayers2D ||
StdMeshers_ViscousLayers2D::HasProxyMesh( TopoDS::Face( occgeo.fmap(1) ), *_mesh ))
if (( _isViscousLayers2D ) ||
( !occgeo.fmap.IsEmpty() &&
StdMeshers_ViscousLayers2D::HasProxyMesh( TopoDS::Face( occgeo.fmap(1) ), *_mesh )))
{
if ( !internals.hasInternalVertexInFace() ) {
FillSMesh( occgeo, *_ngMesh, initState, *_mesh, nodeVec, comment );