From: eap Date: Wed, 11 Mar 2009 14:56:10 +0000 (+0000) Subject: 0020206: EDF SMESH 987: Netgen1D2D3D +submesh X-Git-Tag: V4_1_5rc1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f7bfc82ec31089c2271c656037054006bade7b50;p=modules%2Fsmesh.git 0020206: EDF SMESH 987: Netgen1D2D3D +submesh don't create ordinary submeshes for compounds --- diff --git a/src/SMESHDS/SMESHDS_Mesh.cxx b/src/SMESHDS/SMESHDS_Mesh.cxx index b2dab7719..a4c1668a6 100644 --- a/src/SMESHDS/SMESHDS_Mesh.cxx +++ b/src/SMESHDS/SMESHDS_Mesh.cxx @@ -1155,7 +1155,7 @@ int SMESHDS_Mesh::AddCompoundSubmesh(const TopoDS_Shape& S, SMESHDS_SubMesh * aNewSub = NewSubMesh( aMainIndex ); if ( !aNewSub->IsComplexSubmesh() ) // is empty { - int shapeType = all ? myShape.ShapeType() : type; + int shapeType = Max( TopAbs_SOLID, all ? myShape.ShapeType() : type ); int typeLimit = all ? TopAbs_VERTEX : type; for ( ; shapeType <= typeLimit; shapeType++ ) {