mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 17:50:34 +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");
|
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 */
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user