From e3ca5591ace3bcd3f5be0b5d0fd13bf23f24b4f7 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 11 Mar 2009 14:55:05 +0000 Subject: [PATCH] 0020206: EDF SMESH 987: Netgen1D2D3D +submesh don't create ordinary submeshes for compounds --- src/SMESHDS/SMESHDS_Mesh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ ) { -- 2.30.2