mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 10:40:34 +05:00
22372: EDF 2758 SMESH: Create/Manage groups on a mesh composed of nodes and balls
Performance optimization for groups on filter: int SMESHGUI_Selection::numberOfNodes( int ind ) const { ... - return aGroupObj->Size(); + return aGroupObj->IsEmpty(); // aGroupObj->Size();
This commit is contained in:
parent
d51efe3933
commit
301a74fd98
@ -382,7 +382,7 @@ bool SMESHGUI_Selection::isAutoColor( int ind ) const
|
|||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : numberOfNodes
|
//function : numberOfNodes
|
||||||
//purpose :
|
//purpose : this method is actually used to check if an object is empty or not
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
int SMESHGUI_Selection::numberOfNodes( int ind ) const
|
int SMESHGUI_Selection::numberOfNodes( int ind ) const
|
||||||
@ -401,7 +401,7 @@ int SMESHGUI_Selection::numberOfNodes( int ind ) const
|
|||||||
return aSubMeshObj->GetNumberOfNodes(true);
|
return aSubMeshObj->GetNumberOfNodes(true);
|
||||||
SMESH::SMESH_GroupBase_var aGroupObj = SMESH::SMESH_GroupBase::_narrow( obj );
|
SMESH::SMESH_GroupBase_var aGroupObj = SMESH::SMESH_GroupBase::_narrow( obj );
|
||||||
if ( !aGroupObj->_is_nil() )
|
if ( !aGroupObj->_is_nil() )
|
||||||
return aGroupObj->Size();
|
return aGroupObj->IsEmpty(); // aGroupObj->Size();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user