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 //=============================================================================
14 namespace BREPImport {
15 TopoDS_Shape Import(const TCollection_AsciiString& theFileName,
16 const TCollection_AsciiString&,
17 TCollection_AsciiString& theError, const TDF_Label&)
20 std::cout << "Import BREP from file " << theFileName << std::endl;
23 BRep_Builder aBuilder;
24 BRepTools::Read(aShape, theFileName.ToCString(), aBuilder);
25 if (aShape.IsNull()) {
26 theError = "BREP Import failed";