From: eap Date: Wed, 23 Mar 2016 11:46:26 +0000 (+0300) Subject: 53011: Order of sub-mesh in meshing process does't work X-Git-Tag: V7_8_0a2^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48c26e46ac2dcb4bd5c47e686efc31082e35a862;p=plugins%2Fnetgenplugin.git 53011: Order of sub-mesh in meshing process does't work More fix for the SALOME crash --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 0d40a3a..680fd9f 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -955,6 +955,7 @@ bool NETGENPlugin_Mesher::FillNgMesh(netgen::OCCGeometry& occgeom, // if second oreder is required, even already meshed faces must be passed to NETGEN int fID = occgeom.fmap.Add( geomFace ); + if ( occgeom.facemeshstatus.Size() < fID ) occgeom.facemeshstatus.SetSize( fID ); occgeom.facemeshstatus[ fID-1 ] = netgen::FACE_MESHED_OK; while ( fID < faceNgID ) // geomFace is already in occgeom.fmap, add a copy {