mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-21 01:19:41 +05:00
0021843: [CEA 658] Segmentation fault when using GHS3D on a 2D group
correct fillAncestorsMap() not to miss COMPOUNDs inside a COMPOUND
This commit is contained in:
parent
f8658faa90
commit
98ad123d21
@ -1984,6 +1984,13 @@ void SMESH_Mesh::fillAncestorsMap(const TopoDS_Shape& theShape)
|
||||
(TopAbs_ShapeEnum) ancType,
|
||||
_mapAncestors );
|
||||
}
|
||||
// visit COMPOUNDs inside a COMPOUND that are not reachable by TopExp_Explorer
|
||||
if ( theShape.ShapeType() == TopAbs_COMPOUND )
|
||||
{
|
||||
for ( TopoDS_Iterator sIt(theShape); sIt.More(); sIt.Next() )
|
||||
if ( sIt.Value().ShapeType() == TopAbs_COMPOUND )
|
||||
fillAncestorsMap( sIt.Value() );
|
||||
}
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user