Performance optimization for groups on filter:
int SMESHGUI_Selection::numberOfNodes( int ind ) const
{
...
- return aGroupObj->Size();
+ return aGroupObj->IsEmpty(); // aGroupObj->Size();
//=======================================================================
//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
return aSubMeshObj->GetNumberOfNodes(true);
SMESH::SMESH_GroupBase_var aGroupObj = SMESH::SMESH_GroupBase::_narrow( obj );
if ( !aGroupObj->_is_nil() )
- return aGroupObj->Size();
+ return aGroupObj->IsEmpty(); // aGroupObj->Size();
}
}
return 0;