mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-06 04:34:16 +05:00
make IndexToShape() const
This commit is contained in:
parent
c5f9115cd9
commit
5049039765
@ -1108,7 +1108,7 @@ int SMESHDS_Mesh::AddCompoundSubmesh(const TopoDS_Shape& S,
|
|||||||
//function : IndexToShape
|
//function : IndexToShape
|
||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
TopoDS_Shape SMESHDS_Mesh::IndexToShape(int ShapeIndex)
|
const TopoDS_Shape& SMESHDS_Mesh::IndexToShape(int ShapeIndex) const
|
||||||
{
|
{
|
||||||
return myIndexToShape.FindKey(ShapeIndex);
|
return myIndexToShape.FindKey(ShapeIndex);
|
||||||
}
|
}
|
||||||
|
@ -432,7 +432,7 @@ public:
|
|||||||
SMESHDS_Script * GetScript();
|
SMESHDS_Script * GetScript();
|
||||||
void ClearScript();
|
void ClearScript();
|
||||||
int ShapeToIndex(const TopoDS_Shape & aShape) const;
|
int ShapeToIndex(const TopoDS_Shape & aShape) const;
|
||||||
TopoDS_Shape IndexToShape(int ShapeIndex);
|
const TopoDS_Shape& IndexToShape(int ShapeIndex) const;
|
||||||
|
|
||||||
SMESHDS_SubMesh * NewSubMesh(int Index);
|
SMESHDS_SubMesh * NewSubMesh(int Index);
|
||||||
int AddCompoundSubmesh(const TopoDS_Shape& S, TopAbs_ShapeEnum type = TopAbs_SHAPE);
|
int AddCompoundSubmesh(const TopoDS_Shape& S, TopAbs_ShapeEnum type = TopAbs_SHAPE);
|
||||||
|
Loading…
Reference in New Issue
Block a user