1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 #include <GeomAlgoAPI_BREPExport.h>
5 #include <BRepTools.hxx>
6 #include <BRep_Builder.hxx>
8 //=============================================================================
12 //=============================================================================
14 namespace BREPExport {
15 bool Export(const TCollection_AsciiString& theFileName,
16 const TCollection_AsciiString&,
17 const TopoDS_Shape& theShape,
18 TCollection_AsciiString& theError)
21 std::cout << "Export BREP into file " << theFileName << std::endl;
23 if ( !BRepTools::Write( theShape, theFileName.ToCString() ) ) {
24 theError = "BREP Export failed";