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>
14 //=============================================================================
18 //=============================================================================
23 __declspec(__dllexport)
25 TopoDS_Shape Import (const TCollection_AsciiString& theFileName,
26 TCollection_AsciiString& theError)
28 MESSAGE("Import BREP from file " << theFileName);
31 BRepTools::Read(aShape, theFileName.ToCString(), B);
32 if (aShape.IsNull()) {
33 theError = "BREP Import failed";