-//=================================================================================================
-void FeaturesPlugin_Revolution::LoadNamingDS(GeomAlgoAPI_Revolution& theFeature,
- std::shared_ptr<ModelAPI_ResultBody> theResultBody,
- std::shared_ptr<GeomAPI_Shape> theBasis,
- std::shared_ptr<GeomAPI_Shape> theContext)
-{
- //TODO: Fix naming
- theResultBody->store(theFeature.shape());
- return;
-
- //load result
- if(theBasis->isEqual(theContext))
- theResultBody->store(theFeature.shape());
- else
- theResultBody->storeGenerated(theContext, theFeature.shape());
-
- GeomAPI_DataMapOfShapeShape* aSubShapes = new GeomAPI_DataMapOfShapeShape();
- theFeature.mapOfShapes(*aSubShapes);
-
- //Insert lateral face : Face from Edge
- std::string aLatName = "LateralFace";
- theResultBody->loadAndOrientGeneratedShapes(theFeature.makeShape(), theBasis, EDGE,_LATERAL_TAG, aLatName, *aSubShapes);
-
- ////Insert first face
- //std::string aBotName = "FirstFace";
- //std::shared_ptr<GeomAPI_Shape> aBottomFace = theFeature.firstShape();
- //if(!aBottomFace->isNull()) {
- // if(aSubShapes->isBound(aBottomFace)) {
- // aBottomFace = aSubShapes->find(aBottomFace);
- // }
- // theResultBody->generated(aBottomFace, aBotName, _FIRST_TAG);
- //}
-
- ////Insert last face
- //std::string aTopName = "LastFace";
- //std::shared_ptr<GeomAPI_Shape> aTopFace = theFeature.lastShape();
- //if (!aTopFace->isNull()) {
- // if (aSubShapes->isBound(aTopFace)) {
- // aTopFace = aSubShapes->find(aTopFace);
- // }
- // theResultBody->generated(aTopFace, aTopName, _LAST_TAG);
- //}