mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 09:40:35 +05:00
NRI : Use GEOM instead of Geometry.
This commit is contained in:
parent
75b2e9d4ba
commit
602e9e7a7a
@ -215,7 +215,7 @@ SMESHGUI* SMESHGUI::GetOrCreateSMESHGUI( QAD_Desktop* desktop )
|
||||
Engines::Component_var comp = desktop->getEngine("FactoryServer", "SMESH");
|
||||
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);
|
||||
|
||||
/* GetCurrentStudy */
|
||||
|
@ -877,7 +877,7 @@ bool SMESH_Gen_i::Load(SALOMEDS::SComponent_ptr theComponent,
|
||||
_NS->init_orb( _orb ) ;
|
||||
SALOME_LifeCycleCORBA* myEnginesLifeCycle = new SALOME_LifeCycleCORBA(_NS);
|
||||
Engines::Component_var geomEngine =
|
||||
myEnginesLifeCycle->FindOrLoad_Component("FactoryServer","Geometry");
|
||||
myEnginesLifeCycle->FindOrLoad_Component("FactoryServer","GEOM");
|
||||
GEOM::GEOM_Gen_var myGeomEngine = GEOM::GEOM_Gen::_narrow(geomEngine);
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@ import math
|
||||
|
||||
import geompy
|
||||
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry")
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
|
||||
myBuilder = salome.myStudy.NewBuilder()
|
||||
from geompy import gg
|
||||
|
||||
|
@ -15,7 +15,7 @@ class smeshpy:
|
||||
|
||||
def __init__(self):
|
||||
try:
|
||||
self._geom = salome.lcc.FindOrLoadComponent("FactoryServer","Geometry")
|
||||
self._geom = salome.lcc.FindOrLoadComponent("FactoryServer","GEOM")
|
||||
self._smesh = salome.lcc.FindOrLoadComponent("FactoryServer","SMESH")
|
||||
except:
|
||||
MESSAGE( "exception in smeshpy:__init__" )
|
||||
@ -59,7 +59,7 @@ class smeshpy:
|
||||
##def SmeshInit(shapeId):
|
||||
## import salome
|
||||
## import SMESH
|
||||
## geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry")
|
||||
## geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
|
||||
## smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
|
||||
## shape = salome.IDToObject(shapeId)
|
||||
## studyId = salome.myStudyId
|
||||
|
@ -60,7 +60,7 @@ def MakeCompound(lstShells) :
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry")
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
|
||||
myBuilder = salome.myStudy.NewBuilder()
|
||||
|
||||
ShapeTypeCompSolid = 1
|
||||
|
@ -19,7 +19,7 @@ import geompy
|
||||
|
||||
|
||||
# ---------------------------- GEOM --------------------------------------
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry")
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
|
||||
myBuilder = salome.myStudy.NewBuilder()
|
||||
#from geompy import gg
|
||||
|
||||
|
@ -7,7 +7,7 @@ import math
|
||||
|
||||
import geompy
|
||||
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry")
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
|
||||
myBuilder = salome.myStudy.NewBuilder()
|
||||
from geompy import gg
|
||||
|
||||
|
@ -7,7 +7,7 @@ import math
|
||||
|
||||
import geompy
|
||||
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry")
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
|
||||
myBuilder = salome.myStudy.NewBuilder()
|
||||
from geompy import gg
|
||||
|
||||
|
@ -7,7 +7,7 @@ import math
|
||||
|
||||
import geompy
|
||||
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "Geometry")
|
||||
geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
|
||||
myBuilder = salome.myStudy.NewBuilder()
|
||||
from geompy import gg
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user