mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-30 07:20:34 +05:00
PAL19802 A "Clear Mesh data" method for SMESH.Mesh objects
hide groups and submeshes
This commit is contained in:
parent
a1e8ac1ffa
commit
2637a98e56
@ -2165,6 +2165,14 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
||||
aMesh->Clear();
|
||||
_PTR(SObject) aMeshSObj = SMESH::FindSObject(aMesh);
|
||||
SMESH::ModifiedMesh( aMeshSObj, false, true);
|
||||
// hide groups and submeshes
|
||||
_PTR(ChildIterator) anIter =
|
||||
SMESH::GetActiveStudyDocument()->NewChildIterator( aMeshSObj );
|
||||
for ( anIter->InitEx(true); anIter->More(); anIter->Next() )
|
||||
{
|
||||
_PTR(SObject) so = anIter->Value();
|
||||
SMESH::UpdateView(SMESH::eErase, so->GetID().c_str());
|
||||
}
|
||||
}
|
||||
catch (const SALOME::SALOME_Exception& S_ex){
|
||||
wc.suspend();
|
||||
|
Loading…
Reference in New Issue
Block a user