X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_BREPImport.cpp;h=e067acc9e94b3d09067a197063934ac7bebac752;hb=b2a662eec6a0258d51a67ee7e341541e7a710752;hp=9cb93117d5ad0257f466f52546b217db38cd8f8b;hpb=2dd4d315bde6af849d68f1d3cd190ac3ec219527;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp index 9cb93117d..e067acc9e 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp @@ -1,7 +1,13 @@ // Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// File: GeomAlgoAPI_BREPImport.cpp +// Created: May 14, 2015 +// Author: Sergey POKHODENKO + #include +#include + #include #include @@ -10,11 +16,9 @@ * */ //============================================================================= -namespace BREPImport { - -TopoDS_Shape Import(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; @@ -25,7 +29,8 @@ TopoDS_Shape Import(const std::string& theFileName, if (aShape.IsNull()) { theError = "BREP Import failed"; } - return aShape; -} -} // namespace BREPImport + std::shared_ptr aGeomShape(new GeomAPI_Shape); + aGeomShape->setImpl(new TopoDS_Shape(aShape)); + return aGeomShape; +}