]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Initial step for subshapes IDS
authorngo <ngo@opencascade.com>
Mon, 14 Jan 2013 15:33:35 +0000 (15:33 +0000)
committerngo <ngo@opencascade.com>
Mon, 14 Jan 2013 15:33:35 +0000 (15:33 +0000)
src/XAOExport/XAOExport.cxx

index ed36cb0ec751cc0ac2ef2f5076dd456ad539341b..777cf4cd6ea2ca5cc8e7aadacb15f774adefcd2c 100644 (file)
@@ -135,18 +135,8 @@ XAOEXPORT_EXPORT
          //nameShape = GEOMBase::GetName( anObj.get() );
          nameShape = anObj->GetName();
           
-         GEOM_Engine* anEngine = GEOM_Engine::GetEngine();
-         GEOMImpl_Gen* aGen = (GEOMImpl_Gen*)anEngine;
-         if (aGen) {
-           /*GEOM::GEOM_IShapesOperations_var aShOp = anEngine->GetIShapesOperations(anObj->GetStudyID());
-           aSubShapesId = aShOp->SubShapeAllIDs(anObj->GetMainObject(), TopAbs_VERTEX, false);*/
-           GEOMImpl_IShapesOperations* anIShapesOperations = aGen->GetIShapesOperations(anObj->GetStudyID());
-            aSubShapesId = anIShapesOperations->SubShapeAllIDs(anObj->GetMainShape()->GetImpl(), TopAbs_VERTEX, false);
-         }
-         //GEOM::GEOM_Gen_ptr GEOMBase_Helper::getGeomEngine();
-         /*GEOM::GEOM_IShapesOperations_var aShOp = GEOMBase_Helper::getGeomEngine()->GetIShapesOperations(anObj->GetStudyID());
-         aSubShapesId = aShOp->SubShapeAllIDs(anObj->GetMainObject(), TopAbs_VERTEX, false);*/
-
+         GEOM::GEOM_IShapesOperations_var aShOp = GeometryGUI::GetGeomGen()->GetIShapesOperations(anObj->GetStudyID());
+          aSubShapesId = aShOp->SubShapeAllIDs(anObj, TopAbs_VERTEX, false);
       }
     }