]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Modification dans SMESH pour obtenir directement les shapes lorsque GEOM et SMESH... br_geomclient_colocal
authorfkl <fkl>
Mon, 23 Feb 2004 10:25:53 +0000 (10:25 +0000)
committerfkl <fkl>
Mon, 23 Feb 2004 10:25:53 +0000 (10:25 +0000)
src/SMESHGUI/SMESHGUI.cxx
src/SMESH_I/SMESH_Gen_i.cxx

index 47bb68559b16ea0b067f60210a750b86b16fcbf5..b6f7577abee3570d1d0a09ab6445a9508a015019 100644 (file)
@@ -76,7 +76,6 @@ using namespace std;
 #include "OCCViewer_ViewPort3d.h"
 #include "OCCViewer_Viewer3d.h"
 
-#include "GEOM_Client.hxx"
 #include "GEOM_InteractiveObject.hxx"
 
 #include "SALOME_NamingService.hxx"
@@ -116,7 +115,6 @@ using namespace std;
 #include <gp_Pnt.hxx>
 #include <gp_Vec.hxx>
 
-static GEOM_Client ShapeReader;
 static SMESHGUI *smeshGUI = 0;
 static CORBA::ORB_var _orb;
 
index e9dcc0ffe79be69e616754002a3322c54678da9d..9894a3075b33079ffdbcea640df8be36d9508ba8 100644 (file)
@@ -196,7 +196,7 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::Init(GEOM::GEOM_Gen_ptr geomEngine,
   SMESH_Mesh_i* meshServant = 0;
   try
     {
-      if (! _ShapeReader) _ShapeReader = new GEOM_Client();
+      if (! _ShapeReader) _ShapeReader = new GEOM_Client(GetContainerRef());
       ASSERT(_ShapeReader);
       
       // explore main Shape, get local TopoDS_Shapes of all subShapes
@@ -283,7 +283,7 @@ CORBA::Boolean SMESH_Gen_i::IsReadyToCompute(SMESH::SMESH_Mesh_ptr aMesh,
 
   try
     {
-      if (! _ShapeReader) _ShapeReader = new GEOM_Client();
+      if (! _ShapeReader) _ShapeReader = new GEOM_Client(GetContainerRef());
       ASSERT(_ShapeReader);
       TopoDS_Shape myMainShape  = _ShapeReader->GetShape(geom,myShape);
       TopTools_IndexedMapOfShape myIndexToShape;