std::shared_ptr<GeomAPI_Shape> shape(const ResultPtr& theResult)
{
-/*
- ResultBodyPtr aBody = std::dynamic_pointer_cast<ModelAPI_ResultBody>(theResult);
- if (aBody)
- return aBody->shape();
-
- ResultConstructionPtr aConstruct = std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(
- theResult);
- if (aConstruct)
- return aConstruct->shape();
-
- ResultGroupPtr aGroup = std::dynamic_pointer_cast<ModelAPI_ResultGroup>(theResult);
- if (aGroup)
- return aGroup->shape();
- return std::shared_ptr<GeomAPI_Shape>();
- */
return theResult->shape();
}