mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 01:10:35 +05:00
abort when using SMESH GUI for creating a mesh from a geometry (while testing suitable algorithms)
This commit is contained in:
parent
5fb78e0913
commit
db7a4ffa0c
@ -2595,8 +2595,11 @@ const std::vector< SMESH_subMesh * > & SMESH_subMesh::GetAncestors() const
|
||||
TopTools_MapOfShape map;
|
||||
|
||||
// assure that all sub-meshes exist
|
||||
TopoDS_Shape mainShape = _father->GetShapeToMesh();
|
||||
if (!mainShape.IsNull())
|
||||
{
|
||||
_father->GetSubMesh( _father->GetShapeToMesh() )->DependsOn();
|
||||
|
||||
}
|
||||
for ( TopTools_ListIteratorOfListOfShape it( ancShapes ); it.More(); it.Next() )
|
||||
if ( SMESH_subMesh* sm = _father->GetSubMeshContaining( it.Value() ))
|
||||
if ( map.Add( it.Value() ))
|
||||
|
Loading…
Reference in New Issue
Block a user