]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/FeaturesPlugin_ExtrusionSketch.cpp
Salome HOME
GeomAlgoAPI_Prism now derived from GeomAlgoAPI_MakeSweep
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_ExtrusionSketch.cpp
index 682ea60ac214877e7cbfeb8beca0fbdafcd49329..94fb46a4c4aa19852895a7ef6f6e7f43c1c38c8a 100644 (file)
@@ -79,17 +79,17 @@ void FeaturesPlugin_ExtrusionSketch::makeSolid(const std::shared_ptr<GeomAPI_Sha
   }
 
   // Extrude face
-  GeomAlgoAPI_Prism aPrismAlgo(theFace, aToShape, aToSize, aFromShape, aFromSize);
+  std::shared_ptr<GeomAlgoAPI_Prism> aPrismAlgo(new GeomAlgoAPI_Prism(theFace, aToShape, aToSize, aFromShape, aFromSize));
 
   // Checking that the algorithm worked properly.
-  if(!aPrismAlgo.isDone() || !aPrismAlgo.shape().get() || aPrismAlgo.shape()->isNull() ||
-     !aPrismAlgo.isValid()) {
+  if(!aPrismAlgo->isDone() || !aPrismAlgo->shape().get() || aPrismAlgo->shape()->isNull() ||
+     !aPrismAlgo->isValid()) {
     return;
   }
 
-  theResult = aPrismAlgo.shape();
-  theFromFaces = aPrismAlgo.fromFaces();
-  theToFaces = aPrismAlgo.toFaces();
-  theMakeShape = aPrismAlgo.makeShape();
-  theDataMap = aPrismAlgo.mapOfShapes();
+  theResult = aPrismAlgo->shape();
+  theFromFaces = aPrismAlgo->fromFaces();
+  theToFaces = aPrismAlgo->toFaces();
+  theMakeShape = aPrismAlgo;
+  theDataMap = aPrismAlgo->mapOfSubShapes();
 }