Salome HOME
0020206: EDF SMESH 987: Netgen1D2D3D +submesh
authoreap <eap@opencascade.com>
Wed, 11 Mar 2009 14:56:10 +0000 (14:56 +0000)
committereap <eap@opencascade.com>
Wed, 11 Mar 2009 14:56:10 +0000 (14:56 +0000)
    don't create ordinary submeshes for compounds

src/SMESHDS/SMESHDS_Mesh.cxx

index b2dab77199e533f82e0e18f4de3ddf43d172fb37..a4c1668a6a78a595f406e57a5e71b7e3e3360890 100644 (file)
@@ -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++ )
       {