}
return GEOM::GEOM_Object::_nil();
}
+
+ GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
+ long theID)
+ {
+ GEOM::GEOM_Gen_var geomGen = SMESH::GetGEOMGen();
+ _PTR(Study) aStudy = SMESH::GetActiveStudyDocument();
+ if (!aStudy || geomGen->_is_nil())
+ return GEOM::GEOM_Object::_nil();
+ GEOM::GEOM_IShapesOperations_var aShapesOp = geomGen->GetIShapesOperations(aStudy->StudyId());
+ if (aShapesOp->_is_nil())
+ return GEOM::GEOM_Object::_nil();
+ GEOM::GEOM_Object_var subShape = aShapesOp->GetSubShape (theMainShape,theID);
+ return subShape._retn();
+ }
}
GEOM::GEOM_Object_var GetShapeOnMeshOrSubMesh (_PTR(SObject) theSObject);
GEOM::GEOM_Object_ptr GetGeom (_PTR(SObject) theSO);
+
+ GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
+ long theID);
}
#endif