mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
task "Polyhedral elements". Add GetSubmeshContaining( shapeID )
This commit is contained in:
parent
06d4c3480d
commit
245c0f137d
@ -660,6 +660,24 @@ throw(SALOME_Exception)
|
|||||||
return aSubMesh;
|
return aSubMesh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
/*!
|
||||||
|
* Get the SMESH_subMesh object implementation. Dont create it, return null
|
||||||
|
* if it does not exist.
|
||||||
|
*/
|
||||||
|
//=============================================================================
|
||||||
|
|
||||||
|
SMESH_subMesh *SMESH_Mesh::GetSubMeshContaining(const int aShapeID)
|
||||||
|
throw(SALOME_Exception)
|
||||||
|
{
|
||||||
|
Unexpect aCatch(SalomeException);
|
||||||
|
|
||||||
|
map <int, SMESH_subMesh *>::iterator i_sm = _mapSubMesh.find(aShapeID);
|
||||||
|
if (i_sm == _mapSubMesh.end())
|
||||||
|
return NULL;
|
||||||
|
return i_sm->second;
|
||||||
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : IsUsedHypothesis
|
//function : IsUsedHypothesis
|
||||||
//purpose : Return True if anHyp is used to mesh aSubShape
|
//purpose : Return True if anHyp is used to mesh aSubShape
|
||||||
|
@ -129,6 +129,9 @@ public:
|
|||||||
SMESH_subMesh *GetSubMeshContaining(const TopoDS_Shape & aSubShape)
|
SMESH_subMesh *GetSubMeshContaining(const TopoDS_Shape & aSubShape)
|
||||||
throw(SALOME_Exception);
|
throw(SALOME_Exception);
|
||||||
|
|
||||||
|
SMESH_subMesh *GetSubMeshContaining(const int aShapeID)
|
||||||
|
throw(SALOME_Exception);
|
||||||
|
|
||||||
const list < SMESH_subMesh * >&
|
const list < SMESH_subMesh * >&
|
||||||
GetSubMeshUsingHypothesis(SMESHDS_Hypothesis * anHyp)
|
GetSubMeshUsingHypothesis(SMESHDS_Hypothesis * anHyp)
|
||||||
throw(SALOME_Exception);
|
throw(SALOME_Exception);
|
||||||
|
Loading…
Reference in New Issue
Block a user