mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-06 20:34:18 +05:00
0020832: EDF 1359 SMESH : Automatic meshing of boundary layers
Make const some requiring methods
This commit is contained in:
parent
6a532d5567
commit
f409dd5186
@ -1117,7 +1117,7 @@ SMESHDS_SubMesh * SMESHDS_Mesh::MeshElements(const TopoDS_Shape & S) const
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
/// Return the sub mesh by Id of shape it is linked to
|
/// Return the sub mesh by Id of shape it is linked to
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
SMESHDS_SubMesh * SMESHDS_Mesh::MeshElements(const int Index)
|
SMESHDS_SubMesh * SMESHDS_Mesh::MeshElements(const int Index) const
|
||||||
{
|
{
|
||||||
TShapeIndexToSubMesh::const_iterator anIter = myShapeIndexToSubMesh.find(Index);
|
TShapeIndexToSubMesh::const_iterator anIter = myShapeIndexToSubMesh.find(Index);
|
||||||
if (anIter != myShapeIndexToSubMesh.end())
|
if (anIter != myShapeIndexToSubMesh.end())
|
||||||
@ -1130,10 +1130,10 @@ SMESHDS_SubMesh * SMESHDS_Mesh::MeshElements(const int Index)
|
|||||||
//function : SubMeshIndices
|
//function : SubMeshIndices
|
||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
list<int> SMESHDS_Mesh::SubMeshIndices()
|
list<int> SMESHDS_Mesh::SubMeshIndices() const
|
||||||
{
|
{
|
||||||
list<int> anIndices;
|
list<int> anIndices;
|
||||||
std::map<int,SMESHDS_SubMesh*>::iterator anIter = myShapeIndexToSubMesh.begin();
|
std::map<int,SMESHDS_SubMesh*>::const_iterator anIter = myShapeIndexToSubMesh.begin();
|
||||||
for (; anIter != myShapeIndexToSubMesh.end(); anIter++) {
|
for (; anIter != myShapeIndexToSubMesh.end(); anIter++) {
|
||||||
anIndices.push_back((*anIter).first);
|
anIndices.push_back((*anIter).first);
|
||||||
}
|
}
|
||||||
@ -1177,7 +1177,7 @@ void SMESHDS_Mesh::ClearScript()
|
|||||||
//function : HasMeshElements
|
//function : HasMeshElements
|
||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
bool SMESHDS_Mesh::HasMeshElements(const TopoDS_Shape & S)
|
bool SMESHDS_Mesh::HasMeshElements(const TopoDS_Shape & S) const
|
||||||
{
|
{
|
||||||
if (myShape.IsNull()) MESSAGE("myShape is NULL");
|
if (myShape.IsNull()) MESSAGE("myShape is NULL");
|
||||||
int Index = myIndexToShape.FindIndex(S);
|
int Index = myIndexToShape.FindIndex(S);
|
||||||
|
@ -414,10 +414,10 @@ public:
|
|||||||
const TopoDS_Shape & S);
|
const TopoDS_Shape & S);
|
||||||
void UnSetMeshElementOnShape(const SMDS_MeshElement * anElt,
|
void UnSetMeshElementOnShape(const SMDS_MeshElement * anElt,
|
||||||
const TopoDS_Shape & S);
|
const TopoDS_Shape & S);
|
||||||
bool HasMeshElements(const TopoDS_Shape & S);
|
bool HasMeshElements(const TopoDS_Shape & S) const;
|
||||||
SMESHDS_SubMesh * MeshElements(const TopoDS_Shape & S) const;
|
SMESHDS_SubMesh * MeshElements(const TopoDS_Shape & S) const;
|
||||||
SMESHDS_SubMesh * MeshElements(const int Index);
|
SMESHDS_SubMesh * MeshElements(const int Index) const;
|
||||||
std::list<int> SubMeshIndices();
|
std::list<int> SubMeshIndices() const;
|
||||||
const std::map<int,SMESHDS_SubMesh*>& SubMeshes() const
|
const std::map<int,SMESHDS_SubMesh*>& SubMeshes() const
|
||||||
{ return myShapeIndexToSubMesh; }
|
{ return myShapeIndexToSubMesh; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user