mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-24 22:50:32 +05:00
fix GetSubMesh()
if ( it.More() ) + { index = _myMeshDS->AddCompoundSubmesh( aSubShape, it.Value().ShapeType() ); + if ( index > _nbSubShapes ) _nbSubShapes = index; // not to create sm for this group again + } }
This commit is contained in:
parent
7dba98132c
commit
30aaa793b9
@ -839,7 +839,10 @@ SMESH_subMesh *SMESH_Mesh::GetSubMesh(const TopoDS_Shape & aSubShape)
|
|||||||
if (( !index || index > _nbSubShapes ) && aSubShape.ShapeType() == TopAbs_COMPOUND ) {
|
if (( !index || index > _nbSubShapes ) && aSubShape.ShapeType() == TopAbs_COMPOUND ) {
|
||||||
TopoDS_Iterator it( aSubShape );
|
TopoDS_Iterator it( aSubShape );
|
||||||
if ( it.More() )
|
if ( it.More() )
|
||||||
|
{
|
||||||
index = _myMeshDS->AddCompoundSubmesh( aSubShape, it.Value().ShapeType() );
|
index = _myMeshDS->AddCompoundSubmesh( aSubShape, it.Value().ShapeType() );
|
||||||
|
if ( index > _nbSubShapes ) _nbSubShapes = index; // not to create sm for this group again
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// if ( !index )
|
// if ( !index )
|
||||||
// return NULL; // neither sub-shape nor a group
|
// return NULL; // neither sub-shape nor a group
|
||||||
|
Loading…
Reference in New Issue
Block a user