Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bug corrections in Zcracks for V83
[modules/smesh.git]
/
src
/
SMESHDS
/
SMESHDS_GroupBase.cxx
diff --git
a/src/SMESHDS/SMESHDS_GroupBase.cxx
b/src/SMESHDS/SMESHDS_GroupBase.cxx
index ef2f2de4a5c5e1c76b7900f9c6cc40f9d19093bb..7d4d10fdfc9f41f8fff17b1f3db466370501b952 100644
(file)
--- a/
src/SMESHDS/SMESHDS_GroupBase.cxx
+++ b/
src/SMESHDS/SMESHDS_GroupBase.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
5
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
6
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-124,6
+124,9
@@
int SMESHDS_GroupBase::Extent() const
bool SMESHDS_GroupBase::IsEmpty()
{
bool SMESHDS_GroupBase::IsEmpty()
{
+ if ( myMesh->GetMeshInfo().NbElements( myType ) == 0 )
+ // avoid long iteration over sub-meshes of a complex sub-mesh of a group on geometry
+ return false;
SMDS_ElemIteratorPtr it = GetElements();
return ( !it || !it->more() );
}
SMDS_ElemIteratorPtr it = GetElements();
return ( !it || !it->more() );
}