mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-25 22:37:55 +05:00
WIP
This commit is contained in:
parent
906eec7529
commit
67e17c78dc
@ -24,10 +24,10 @@
|
|||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
CORBA::ORB_var orb;
|
|
||||||
|
|
||||||
std::string BuildSMESHInstance()
|
std::string BuildSMESHInstance()
|
||||||
{
|
{
|
||||||
|
CORBA::ORB_var orb;
|
||||||
{ int argc(0); orb = CORBA::ORB_init(argc,nullptr); }
|
{ int argc(0); orb = CORBA::ORB_init(argc,nullptr); }
|
||||||
CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
|
CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
|
||||||
PortableServer::POA_var poa = PortableServer::POA::_narrow(obj);
|
PortableServer::POA_var poa = PortableServer::POA::_narrow(obj);
|
||||||
|
@ -380,7 +380,13 @@ class smeshBuilder( SMESH._objref_SMESH_Gen, object ):
|
|||||||
# 1. CORBA resolution of server
|
# 1. CORBA resolution of server
|
||||||
# 2. the __new__ method is called again
|
# 2. the __new__ method is called again
|
||||||
#print("==== smeshInst = lcc.FindOrLoadComponent ", engine, smeshInst, doLcc)
|
#print("==== smeshInst = lcc.FindOrLoadComponent ", engine, smeshInst, doLcc)
|
||||||
smeshInst = salome.lcc.FindOrLoadComponent( "FactoryServer", "SMESH" )
|
#smeshInst = salome.lcc.FindOrLoadComponent( "FactoryServer", "SMESH" )
|
||||||
|
import SMeshHelper
|
||||||
|
smesh_ior = SMeshHelper.BuildSMESHInstance()
|
||||||
|
import SMESH
|
||||||
|
import CORBA
|
||||||
|
orb=CORBA.ORB_init([''])
|
||||||
|
smeshInst = orb.string_to_object(smesh_ior)
|
||||||
else:
|
else:
|
||||||
# FindOrLoadComponent not called
|
# FindOrLoadComponent not called
|
||||||
if smeshInst is None:
|
if smeshInst is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user