#include <GeomAlgoAPI_BREPImport.h>
+#include <TopoDS_Shape.hxx>
+
#include <BRepTools.hxx>
#include <BRep_Builder.hxx>
*
*/
//=============================================================================
-TopoDS_Shape BREPImport(const std::string& theFileName,
- const std::string&,
- std::string& theError)
+std::shared_ptr<GeomAPI_Shape> BREPImport(const std::string& theFileName,
+ const std::string&,
+ std::string& theError)
{
#ifdef _DEBUG
std::cout << "Import BREP from file " << theFileName << std::endl;
if (aShape.IsNull()) {
theError = "BREP Import failed";
}
- return aShape;
+
+ std::shared_ptr<GeomAPI_Shape> aGeomShape(new GeomAPI_Shape);
+ aGeomShape->setImpl(new TopoDS_Shape(aShape));
+ return aGeomShape;
}