From: eap Date: Thu, 12 Apr 2018 13:46:52 +0000 (+0300) Subject: IPAL54379: NETGEN crashes SALOME if all faces belong to a sub-mesh X-Git-Tag: SHAPER_V9_1_0RC1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=77db9b7bedea3b453a669d00005b4bd79c11cc04;p=plugins%2Fnetgenplugin.git IPAL54379: NETGEN crashes SALOME if all faces belong to a sub-mesh --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 4cab2a9..3c902e3 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -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 );