mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 09:50:36 +05:00
+ bool IsUsedHypothesis(const SMESHDS_Hypothesis * H) const;
This commit is contained in:
parent
41d7b89b3b
commit
72f74a3ee1
@ -1145,6 +1145,21 @@ SMESHDS_Mesh::GetHypothesis(const TopoDS_Shape & S) const
|
|||||||
return empty;
|
return empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//================================================================================
|
||||||
|
/*!
|
||||||
|
* \brief returns true if the hypothesis is assigned to any sub-shape
|
||||||
|
*/
|
||||||
|
//================================================================================
|
||||||
|
|
||||||
|
bool SMESHDS_Mesh::IsUsedHypothesis(const SMESHDS_Hypothesis * H) const
|
||||||
|
{
|
||||||
|
ShapeToHypothesis::Iterator s2h( myShapeToHypothesis );
|
||||||
|
for ( ; s2h.More(); s2h.Next() )
|
||||||
|
if ( std::find( s2h.Value().begin(), s2h.Value().end(), H ) != s2h.Value().end() )
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : GetScript
|
//function : GetScript
|
||||||
//purpose :
|
//purpose :
|
||||||
|
@ -422,6 +422,7 @@ public:
|
|||||||
|
|
||||||
bool HasHypothesis(const TopoDS_Shape & S);
|
bool HasHypothesis(const TopoDS_Shape & S);
|
||||||
const std::list<const SMESHDS_Hypothesis*>& GetHypothesis(const TopoDS_Shape & S) const;
|
const std::list<const SMESHDS_Hypothesis*>& GetHypothesis(const TopoDS_Shape & S) const;
|
||||||
|
bool IsUsedHypothesis(const SMESHDS_Hypothesis * H) const;
|
||||||
SMESHDS_Script * GetScript();
|
SMESHDS_Script * GetScript();
|
||||||
void ClearScript();
|
void ClearScript();
|
||||||
int ShapeToIndex(const TopoDS_Shape & aShape) const;
|
int ShapeToIndex(const TopoDS_Shape & aShape) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user