NRI : Use GEOM instead of Geometry.

This commit is contained in:
nri 2003-05-20 07:18:29 +00:00
parent 75b2e9d4ba
commit 602e9e7a7a
9 changed files with 10 additions and 10 deletions

View File

@ -215,7 +215,7 @@ SMESHGUI* SMESHGUI::GetOrCreateSMESHGUI( QAD_Desktop* desktop )
Engines::Component_var comp = desktop->getEngine("FactoryServer", "SMESH"); Engines::Component_var comp = desktop->getEngine("FactoryServer", "SMESH");
smeshGUI->myComponentMesh = SMESH::SMESH_Gen::_narrow(comp); smeshGUI->myComponentMesh = SMESH::SMESH_Gen::_narrow(comp);
Engines::Component_var comp1 = desktop->getEngine("FactoryServer", "Geometry"); Engines::Component_var comp1 = desktop->getEngine("FactoryServer", "GEOM");
smeshGUI->myComponentGeom = GEOM::GEOM_Gen::_narrow(comp1); smeshGUI->myComponentGeom = GEOM::GEOM_Gen::_narrow(comp1);
/* GetCurrentStudy */ /* GetCurrentStudy */

View File

@ -877,7 +877,7 @@ bool SMESH_Gen_i::Load(SALOMEDS::SComponent_ptr theComponent,
_NS->init_orb( _orb ) ; _NS->init_orb( _orb ) ;
SALOME_LifeCycleCORBA* myEnginesLifeCycle = new SALOME_LifeCycleCORBA(_NS); SALOME_LifeCycleCORBA* myEnginesLifeCycle = new SALOME_LifeCycleCORBA(_NS);
Engines::Component_var geomEngine = Engines::Component_var geomEngine =
myEnginesLifeCycle->FindOrLoad_Component("FactoryServer","Geometry"); myEnginesLifeCycle->FindOrLoad_Component("FactoryServer","GEOM");
GEOM::GEOM_Gen_var myGeomEngine = GEOM::GEOM_Gen::_narrow(geomEngine); GEOM::GEOM_Gen_var myGeomEngine = GEOM::GEOM_Gen::_narrow(geomEngine);

View File

@ -9,7 +9,7 @@ import math
import geompy import geompy
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry") geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
myBuilder = salome.myStudy.NewBuilder() myBuilder = salome.myStudy.NewBuilder()
from geompy import gg from geompy import gg

View File

@ -15,7 +15,7 @@ class smeshpy:
def __init__(self): def __init__(self):
try: try:
self._geom = salome.lcc.FindOrLoadComponent("FactoryServer","Geometry") self._geom = salome.lcc.FindOrLoadComponent("FactoryServer","GEOM")
self._smesh = salome.lcc.FindOrLoadComponent("FactoryServer","SMESH") self._smesh = salome.lcc.FindOrLoadComponent("FactoryServer","SMESH")
except: except:
MESSAGE( "exception in smeshpy:__init__" ) MESSAGE( "exception in smeshpy:__init__" )
@ -59,7 +59,7 @@ class smeshpy:
##def SmeshInit(shapeId): ##def SmeshInit(shapeId):
## import salome ## import salome
## import SMESH ## import SMESH
## geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry") ## geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
## smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") ## smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
## shape = salome.IDToObject(shapeId) ## shape = salome.IDToObject(shapeId)
## studyId = salome.myStudyId ## studyId = salome.myStudyId

View File

@ -60,7 +60,7 @@ def MakeCompound(lstShells) :
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry") geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
myBuilder = salome.myStudy.NewBuilder() myBuilder = salome.myStudy.NewBuilder()
ShapeTypeCompSolid = 1 ShapeTypeCompSolid = 1

View File

@ -19,7 +19,7 @@ import geompy
# ---------------------------- GEOM -------------------------------------- # ---------------------------- GEOM --------------------------------------
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry") geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
myBuilder = salome.myStudy.NewBuilder() myBuilder = salome.myStudy.NewBuilder()
#from geompy import gg #from geompy import gg

View File

@ -7,7 +7,7 @@ import math
import geompy import geompy
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry") geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
myBuilder = salome.myStudy.NewBuilder() myBuilder = salome.myStudy.NewBuilder()
from geompy import gg from geompy import gg

View File

@ -7,7 +7,7 @@ import math
import geompy import geompy
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry") geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
myBuilder = salome.myStudy.NewBuilder() myBuilder = salome.myStudy.NewBuilder()
from geompy import gg from geompy import gg

View File

@ -7,7 +7,7 @@ import math
import geompy import geompy
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry") geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
myBuilder = salome.myStudy.NewBuilder() myBuilder = salome.myStudy.NewBuilder()
from geompy import gg from geompy import gg