From 09d65a759f378f5eb9b23c0fd7d281fecb882e36 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 17 May 2013 08:02:47 +0000 Subject: [PATCH] 0022098: EDF 2036 SMESH: Create groups from none conected parts of a mesh - elemSearcher = SMESH_MeshEditor( theHelper->GetMesh() ).GetElementSearcher(); + elemSearcher = SMESH_MeshAlgos::GetElementSearcher( *theHelper->GetMeshDS() ); --- src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx | 32 ++++++++++++++------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index 843a8d3..b8a777e 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -29,23 +29,24 @@ #include -//#include "SMESH_Gen.hxx" +//#include #include -#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 +#include +#include +#include +#include +#include #include #include +#include -#include "SMDS_MeshElement.hxx" -#include "SMDS_MeshNode.hxx" -#include "SMDS_FaceOfNodes.hxx" -#include "SMDS_VolumeOfNodes.hxx" +#include +#include +#include +#include -#include "SMESHDS_Group.hxx" +#include #include #include @@ -76,7 +77,7 @@ #include #include -#include "utilities.h" +#include #ifdef WIN32 #include @@ -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(); -- 2.39.2