From: rnv Date: Wed, 1 Oct 2008 07:00:58 +0000 (+0000) Subject: Fix for issue 19978 (Regression with NETGEN 2D). X-Git-Tag: V5_1_0_for_TC1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bb6d4c6eec47bbbc5795ee9270e2ad3cc5dab7dd;p=plugins%2Fnetgenplugin.git Fix for issue 19978 (Regression with NETGEN 2D). --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index efe06de..6389d3c 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -214,6 +214,13 @@ void NETGENPlugin_Mesher::PrepareOCCgeometry(netgen::OCCGeometry& occgeo, occgeo.changed = 1; //occgeo.BuildFMap(); + //rnv to fix 19978 issue + bool includeSelf = true; + if ( shape.ShapeType() == TopAbs_FACE) { + occgeo.fmap.Add( shape ); + includeSelf = false; + } + // fill maps of shapes of occgeo with not yet meshed subshapes // get root submeshes @@ -230,7 +237,7 @@ void NETGENPlugin_Mesher::PrepareOCCgeometry(netgen::OCCGeometry& occgeo, list< SMESH_subMesh* >::iterator rootIt = rootSM.begin(), rootEnd = rootSM.end(); for ( ; rootIt != rootEnd; ++rootIt ) { SMESH_subMesh * root = *rootIt; - SMESH_subMeshIteratorPtr smIt = root->getDependsOnIterator(/*includeSelf=*/true, + SMESH_subMeshIteratorPtr smIt = root->getDependsOnIterator(/*includeSelf=*/includeSelf, /*complexShapeFirst=*/true); while ( smIt->more() ) { SMESH_subMesh* sm = smIt->next();