X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Revolution.cpp;h=7716583e1c436bcf655226ae02e640c524c7eab2;hb=c8759835f4eabfde25497d8b6189dda62dba78e8;hp=3bd64910c877776803eceff05277c89e9ef5f975;hpb=28d64622a1b933c484fa4a8df26302e1358ba5d0;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Revolution.cpp b/src/FeaturesPlugin/FeaturesPlugin_Revolution.cpp index 3bd64910c..7716583e1 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Revolution.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Revolution.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -64,12 +65,12 @@ void FeaturesPlugin_Revolution::execute() std::shared_ptr anEdge; std::shared_ptr anObjRef = selection(AXIS_OBJECT_ID()); if(anObjRef && anObjRef->value() && anObjRef->value()->isEdge()) { - anEdge = std::make_shared(anObjRef->value()); + anEdge = std::shared_ptr(new GeomAPI_Edge(anObjRef->value())); } else if(anObjRef->context() && anObjRef->context()->shape() && anObjRef->context()->shape()->isEdge()) { - anEdge = std::make_shared(anObjRef->context()->shape()); + anEdge = std::shared_ptr(new GeomAPI_Edge(anObjRef->context()->shape())); } if(anEdge) { - anAxis = std::make_shared(anEdge->line()->location(), anEdge->line()->direction()); + anAxis = std::shared_ptr(new GeomAPI_Ax1(anEdge->line()->location(), anEdge->line()->direction())); } // Getting angles. @@ -178,7 +179,6 @@ void FeaturesPlugin_Revolution::LoadNamingDS(GeomAlgoAPI_Revolution& theFeature, std::shared_ptr theBasis, std::shared_ptr theContext) { - //load result if(theBasis->isEqual(theContext)) theResultBody->store(theFeature.shape()); else