1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 #include <GeomAlgoAPI_BREPImport.h>
5 #include <BRepTools.hxx>
6 #include <BRep_Builder.hxx>
8 //=============================================================================
12 //=============================================================================
13 namespace BREPImport {
15 TopoDS_Shape Import(const std::string& theFileName,
17 std::string& theError)
20 std::cout << "Import BREP from file " << theFileName << std::endl;
23 BRep_Builder aBuilder;
24 BRepTools::Read(aShape, theFileName.c_str(), aBuilder);
25 if (aShape.IsNull()) {
26 theError = "BREP Import failed";
31 } // namespace BREPImport