1 // File: BREPImport.cxx
2 // Created: Wed May 19 14:29:52 2004
3 // Author: Pavel TELKOV
4 // <ptv@mutex.nnov.opencascade.com>
8 #include <BRepTools.hxx>
9 #include <BRep_Builder.hxx>
11 #include <TCollection_AsciiString.hxx>
12 #include <TopoDS_Shape.hxx>
15 #include <SALOME_WNT.hxx>
17 #define SALOME_WNT_EXPORT
20 //=============================================================================
24 //=============================================================================
29 TopoDS_Shape Import (const TCollection_AsciiString& theFileName,
30 TCollection_AsciiString& theError)
32 MESSAGE("Import BREP from file " << theFileName);
35 BRepTools::Read(aShape, theFileName.ToCString(), B);
36 if (aShape.IsNull()) {
37 theError = "BREP Import failed";