X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_BREPImport.cpp;h=e067acc9e94b3d09067a197063934ac7bebac752;hb=b2a662eec6a0258d51a67ee7e341541e7a710752;hp=4dc8769bd91214c85a73fd1dbb09f6cc744c791d;hpb=b004b609d45ba0181546d349878dd279ca0bea33;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp index 4dc8769bd..e067acc9e 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp @@ -6,6 +6,8 @@ #include +#include + #include #include @@ -14,9 +16,9 @@ * */ //============================================================================= -TopoDS_Shape BREPImport(const std::string& theFileName, - const std::string&, - std::string& theError) +std::shared_ptr BREPImport(const std::string& theFileName, + const std::string&, + std::string& theError) { #ifdef _DEBUG std::cout << "Import BREP from file " << theFileName << std::endl; @@ -27,5 +29,8 @@ TopoDS_Shape BREPImport(const std::string& theFileName, if (aShape.IsNull()) { theError = "BREP Import failed"; } - return aShape; + + std::shared_ptr aGeomShape(new GeomAPI_Shape); + aGeomShape->setImpl(new TopoDS_Shape(aShape)); + return aGeomShape; }