mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
Fixes for SMESH working with SHAPERSTUDY
This commit is contained in:
parent
c7e6dcf72a
commit
b6155253f8
@ -278,7 +278,7 @@ SALOME_LifeCycleCORBA* SMESH_Gen_i::GetLCC()
|
||||
GEOM::GEOM_Gen_var SMESH_Gen_i::GetGeomEngine( bool isShaper )
|
||||
{
|
||||
Engines::EngineComponent_ptr temp =
|
||||
GetLCC()->FindOrLoad_Component( isShaper ? "FactoryServerPy" : "FactoryServer",
|
||||
GetLCC()->FindOrLoad_Component( isShaper ? "FactoryServer" : "FactoryServer",
|
||||
isShaper ? "SHAPERSTUDY" : "GEOM" );
|
||||
myGeomGen = GEOM::GEOM_Gen::_narrow( temp );
|
||||
|
||||
@ -295,7 +295,7 @@ GEOM::GEOM_Gen_var SMESH_Gen_i::GetGeomEngine( bool isShaper )
|
||||
|
||||
GEOM::GEOM_Gen_var SMESH_Gen_i::GetGeomEngine( GEOM::GEOM_Object_ptr go )
|
||||
{
|
||||
GEOM::GEOM_Gen_var gen;
|
||||
GEOM::GEOM_Gen_ptr gen;
|
||||
if ( !CORBA::is_nil( go ))
|
||||
gen = go->GetGen();
|
||||
return gen;
|
||||
|
@ -255,7 +255,7 @@ TopoDS_Shape SMESH_Gen_i::GeomObjectToShape(GEOM::GEOM_Object_ptr theGeomObject)
|
||||
if ( !theGeomObject->_is_nil() && !theGeomObject->_non_existent() )
|
||||
{
|
||||
GEOM_Client* aClient = GetShapeReader();
|
||||
GEOM::GEOM_Gen_ptr aGeomEngine = GetGeomEngine( theGeomObject );
|
||||
GEOM::GEOM_Gen_var aGeomEngine = GetGeomEngine( theGeomObject );
|
||||
if ( aClient && !aGeomEngine->_is_nil () )
|
||||
S = aClient->GetShape( aGeomEngine, theGeomObject );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user