Regeression of the Test Case 3D_submesh/A0

fix IsMoreLocalThanPredicate after the patch for issue 0020963
This commit is contained in:
eap 2010-11-12 14:31:15 +00:00
parent acbde3c1ec
commit b3e9d221da
2 changed files with 20 additions and 0 deletions

View File

@ -78,6 +78,8 @@ class SMESH_EXPORT SMESH_HypoFilter: public SMESH_HypoPredicate
static SMESH_HypoPredicate* HasDim(const int theDim); static SMESH_HypoPredicate* HasDim(const int theDim);
static SMESH_HypoPredicate* HasType(const int theHypType); static SMESH_HypoPredicate* HasType(const int theHypType);
bool IsEmpty() const { return myPredicates.empty(); }
/*! /*!
* \brief check aHyp or/and aShape it is assigned to * \brief check aHyp or/and aShape it is assigned to
*/ */

View File

@ -151,6 +151,24 @@ void SMESH_Hypothesis::SetLibName(const char* theLibName)
_libName = string(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;
}
//============================================================================= //=============================================================================
/*! /*!
* *