From: eap Date: Mon, 19 Feb 2007 15:34:13 +0000 (+0000) Subject: PAL13639 (EDF PAL 317 : SMESH : Create "0D Hypothesis") X-Git-Tag: V3_2_6a1~91 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=926b45eef13ca765764fa255ebe343ec009ba796;p=modules%2Fsmesh.git PAL13639 (EDF PAL 317 : SMESH : Create "0D Hypothesis") make some methods const --- diff --git a/src/SMESHDS/SMESHDS_Mesh.hxx b/src/SMESHDS/SMESHDS_Mesh.hxx index d2b2257de..8d447e2f4 100644 --- a/src/SMESHDS/SMESHDS_Mesh.hxx +++ b/src/SMESHDS/SMESHDS_Mesh.hxx @@ -82,6 +82,7 @@ public: bool IsEmbeddedMode(); void ShapeToMesh(const TopoDS_Shape & S); + TopoDS_Shape ShapeToMesh() const; bool AddHypothesis(const TopoDS_Shape & SS, const SMESHDS_Hypothesis * H); bool RemoveHypothesis(const TopoDS_Shape & S, const SMESHDS_Hypothesis * H); @@ -421,12 +422,11 @@ public: const TopoDS_Shape & S); void UnSetMeshElementOnShape(const SMDS_MeshElement * anElt, const TopoDS_Shape & S); - TopoDS_Shape ShapeToMesh() const; bool HasMeshElements(const TopoDS_Shape & S); SMESHDS_SubMesh * MeshElements(const TopoDS_Shape & S) const; SMESHDS_SubMesh * MeshElements(const int Index); std::list SubMeshIndices(); - const std::map& SubMeshes() + const std::map& SubMeshes() const { return myShapeIndexToSubMesh; } bool HasHypothesis(const TopoDS_Shape & S);