0020206: EDF SMESH 987: Netgen1D2D3D +submesh

don't create ordinary submeshes for compounds
This commit is contained in:
eap 2009-03-11 14:55:05 +00:00
parent 666e100eeb
commit e3ca5591ac

View 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++ )
{