mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 17:00:34 +05:00
Fix for the issue #3200 : Can't select SHAPERSTUDY groups in Netgen local size
This commit is contained in:
parent
ed5c94eda8
commit
bcb3b6e5cd
@ -199,7 +199,8 @@ TopAbs_ShapeEnum GeomSelectionTools::entryToShapeType(std::string entry){
|
|||||||
if ( aSO->ReferencedObject( aRefSObj ))
|
if ( aSO->ReferencedObject( aRefSObj ))
|
||||||
aSO = aRefSObj;
|
aSO = aRefSObj;
|
||||||
// MESSAGE("aSO->GetFatherComponent()->ComponentDataType(): " << aSO->GetFatherComponent()->ComponentDataType());
|
// MESSAGE("aSO->GetFatherComponent()->ComponentDataType(): " << aSO->GetFatherComponent()->ComponentDataType());
|
||||||
if ( strcmp(aSO->GetFatherComponent()->ComponentDataType().c_str(),"GEOM") == 0)
|
std::string aComponentType = aSO->GetFatherComponent()->ComponentDataType();
|
||||||
|
if (aComponentType == "GEOM" || aComponentType == "SHAPERSTUDY")
|
||||||
aShape = SMESH::SObjectToInterface<GEOM::GEOM_Object>(aSO);
|
aShape = SMESH::SObjectToInterface<GEOM::GEOM_Object>(aSO);
|
||||||
if ( !aShape->_is_nil() ){
|
if ( !aShape->_is_nil() ){
|
||||||
// MESSAGE("Got the Geom Object ");
|
// MESSAGE("Got the Geom Object ");
|
||||||
@ -207,7 +208,7 @@ TopAbs_ShapeEnum GeomSelectionTools::entryToShapeType(std::string entry){
|
|||||||
SalomeApp_Application* anApp = GetSalomeApplication();
|
SalomeApp_Application* anApp = GetSalomeApplication();
|
||||||
if (anApp) {
|
if (anApp) {
|
||||||
// MESSAGE("Got Application");
|
// MESSAGE("Got Application");
|
||||||
Engines::EngineComponent_var component = anApp->lcc()->FindOrLoad_Component( "FactoryServer","GEOM" );
|
Engines::EngineComponent_var component = anApp->lcc()->FindOrLoad_Component( "FactoryServer", aComponentType.c_str());
|
||||||
GEOM::GEOM_Gen_var _geomEngine = GEOM::GEOM_Gen::_narrow(component);
|
GEOM::GEOM_Gen_var _geomEngine = GEOM::GEOM_Gen::_narrow(component);
|
||||||
// MESSAGE("Got GEOM engine");
|
// MESSAGE("Got GEOM engine");
|
||||||
// if the Geom Object is a group
|
// if the Geom Object is a group
|
||||||
|
Loading…
Reference in New Issue
Block a user