]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
0022098: EDF 2036 SMESH: Create groups from none conected parts of a mesh
authoreap <eap@opencascade.com>
Fri, 17 May 2013 08:02:47 +0000 (08:02 +0000)
committereap <eap@opencascade.com>
Fri, 17 May 2013 08:02:47 +0000 (08:02 +0000)
-    elemSearcher = SMESH_MeshEditor( theHelper->GetMesh() ).GetElementSearcher();
+    elemSearcher = SMESH_MeshAlgos::GetElementSearcher( *theHelper->GetMeshDS() );

src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx

index 843a8d3528e3f2af0afa7e16ef638f00a1d95984..b8a777e4a478602f2ef0ca9386fd692f1991cdb1 100644 (file)
 
 #include <Basics_Utils.hxx>
 
-//#include "SMESH_Gen.hxx"
+//#include <SMESH_Gen.hxx>
 #include <SMESH_Client.hxx>
-#include "SMESH_Mesh.hxx"
-#include "SMESH_Comment.hxx"
-#include "SMESH_MesherHelper.hxx"
-#include "SMESH_MeshEditor.hxx"
-#include "SMESH_OctreeNode.hxx"
-#include "SMESH_Group.hxx"
+#include <SMESH_Mesh.hxx>
+#include <SMESH_Comment.hxx>
+#include <SMESH_MesherHelper.hxx>
+#include <SMESH_MeshEditor.hxx>
+#include <SMESH_OctreeNode.hxx>
+#include <SMESH_Group.hxx>
 #include <SMESH_subMeshEventListener.hxx>
 #include <SMESH_HypoFilter.hxx>
+#include <SMESH_MeshAlgos.hxx>
 
-#include "SMDS_MeshElement.hxx"
-#include "SMDS_MeshNode.hxx"
-#include "SMDS_FaceOfNodes.hxx"
-#include "SMDS_VolumeOfNodes.hxx"
+#include <SMDS_MeshElement.hxx>
+#include <SMDS_MeshNode.hxx>
+#include <SMDS_FaceOfNodes.hxx>
+#include <SMDS_VolumeOfNodes.hxx>
 
-#include "SMESHDS_Group.hxx"
+#include <SMESHDS_Group.hxx>
 
 #include <StdMeshers_QuadToTriaAdaptor.hxx>
 #include <StdMeshers_ViscousLayers.hxx>
@@ -76,7 +77,7 @@
 #include <TopoDS_Shape.hxx>
 #include <TopoDS_Solid.hxx>
 
-#include "utilities.h"
+#include <utilities.h>
 
 #ifdef WIN32
 #include <io.h>
@@ -1127,7 +1128,7 @@ static bool readGMFFile(const char*                     theFile,
   SMESH_ElementSearcher* elemSearcher = 0;
   vector< const SMDS_MeshElement* > foundVolumes;
   if ( theHelper->GetMesh()->NbVolumes() > 0 )
-    elemSearcher = SMESH_MeshEditor( theHelper->GetMesh() ).GetElementSearcher();
+    elemSearcher = SMESH_MeshAlgos::GetElementSearcher( *theHelper->GetMeshDS() );
 
   int nbVertices = GmfStatKwd(InpMsh, GmfVertices) - nbInitialNodes;
   GMFNode = new const SMDS_MeshNode*[ nbVertices + 1 ];
@@ -1438,7 +1439,8 @@ static bool writeGMFFile(const char*                                     theMesh
   GHS3DPlugin_Hypothesis::TIDSortedElemGroupMap::iterator elemIt;
   TIDSortedElemSet::iterator elemSetIt;
   bool isOK;
-  auto_ptr< SMESH_ElementSearcher > pntCls ( SMESH_MeshEditor( theMesh ).GetElementSearcher());
+  auto_ptr< SMESH_ElementSearcher > pntCls
+    ( SMESH_MeshAlgos::GetElementSearcher(*theMesh->GetMeshDS()));
   
   int nbEnforcedVertices = theEnforcedVertices.size();