mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-05-14 19:10:49 +05:00
In GetSubMesh(), assure calling fillAncestorsMap() for each compound
(take into account that a compound can be added to SMESHDS_Mesh at creation of group on geometry)
This commit is contained in:
parent
e69867dda8
commit
46654775eb
@ -918,10 +918,9 @@ SMESH_subMesh *SMESH_Mesh::GetSubMesh(const TopoDS_Shape & 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
|
|
||||||
|
|
||||||
// fill map of Ancestors
|
// fill map of Ancestors
|
||||||
fillAncestorsMap(aSubShape);
|
while ( _nbSubShapes < index )
|
||||||
|
fillAncestorsMap( _myMeshDS->IndexToShape( ++_nbSubShapes ));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if ( !index )
|
// if ( !index )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user