Salome HOME
Fix bug 10390. fix getting submesh for a shell
[modules/smesh.git] / src / SMESH / SMESH_Pattern.hxx
index 373d2ef25a18dda7016eb541fd904bf48776e0b2..e49b498ecb838b6868d403333fb2b0b3feeadee6 100644 (file)
@@ -41,6 +41,7 @@ class SMDS_MeshFace;
 class SMDS_MeshVolume;
 class SMDS_MeshNode;
 class SMESH_Mesh;
+class SMESHDS_SubMesh;
 class TopoDS_Shell;
 class TopoDS_Vertex;
 class TopoDS_Face;
@@ -301,7 +302,14 @@ class SMESH_Pattern {
                   const std::list< int >& theIdsList) const;
   // check xyz ids order in theIdsList taking into account
   // theFirstNode on a link
-                  
+
+  void clearMesh(SMESH_Mesh* theMesh) const;
+  // clear mesh elements existing on myShape in theMesh
+
+  static SMESHDS_SubMesh * getSubmeshWithElements(SMESH_Mesh*         theMesh,
+                                                  const TopoDS_Shape& theShape);
+  // return submesh containing elements bound to theShape in theMesh
+
  private:
   // fields