mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-20 20:50:34 +05:00
Regeression of the Test Case 3D_submesh/A0
fix IsMoreLocalThanPredicate after the patch for issue 0020963
This commit is contained in:
parent
acbde3c1ec
commit
b3e9d221da
@ -78,6 +78,8 @@ class SMESH_EXPORT SMESH_HypoFilter: public SMESH_HypoPredicate
|
||||
static SMESH_HypoPredicate* HasDim(const int theDim);
|
||||
static SMESH_HypoPredicate* HasType(const int theHypType);
|
||||
|
||||
bool IsEmpty() const { return myPredicates.empty(); }
|
||||
|
||||
/*!
|
||||
* \brief check aHyp or/and aShape it is assigned to
|
||||
*/
|
||||
|
@ -151,6 +151,24 @@ void SMESH_Hypothesis::SetLibName(const char* theLibName)
|
||||
_libName = string(theLibName);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : GetMeshByPersistentID
|
||||
//purpose : Find a mesh with given persistent ID
|
||||
//=======================================================================
|
||||
|
||||
SMESH_Mesh* SMESH_Hypothesis::GetMeshByPersistentID(int id)
|
||||
{
|
||||
StudyContextStruct* myStudyContext = _gen->GetStudyContext(_studyId);
|
||||
map<int, SMESH_Mesh*>::iterator itm = itm = myStudyContext->mapMesh.begin();
|
||||
for ( ; itm != myStudyContext->mapMesh.end(); itm++)
|
||||
{
|
||||
SMESH_Mesh* mesh = (*itm).second;
|
||||
if ( mesh->GetMeshDS()->GetPersistentId() == id )
|
||||
return mesh;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
/*!
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user