Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #608: Usage of OCCT in interface -- Remove OCCT from *Export interfaces --...
[modules/shaper.git]
/
src
/
GeomAlgoAPI
/
GeomAlgoAPI_BREPImport.cpp
diff --git
a/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp
b/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp
index 6d676af7c31bc9131eb1c8b158d0f10efe81df38..62d63ac24b4d063b5935f0574ae1218610851160 100644
(file)
--- a/
src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp
+++ b/
src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp
@@
-1,6
+1,6
@@
// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-#include <G
EOMALGO
API_BREPImport.h>
+#include <G
eomAlgo
API_BREPImport.h>
#include <BRepTools.hxx>
#include <BRep_Builder.hxx>
#include <BRepTools.hxx>
#include <BRep_Builder.hxx>
@@
-10,23
+10,18
@@
*
*/
//=============================================================================
*
*/
//=============================================================================
-//extern "C" {
-namespace BREPImport {
-TopoDS_Shape Import(const TCollection_AsciiString& theFileName,
- const TCollection_AsciiString&,
- TCollection_AsciiString& theError, const TDF_Label&)
+TopoDS_Shape BREPImport(const std::string& theFileName,
+ const std::string&,
+ std::string& theError)
{
#ifdef _DEBUG
std::cout << "Import BREP from file " << theFileName << std::endl;
#endif
TopoDS_Shape aShape;
BRep_Builder aBuilder;
{
#ifdef _DEBUG
std::cout << "Import BREP from file " << theFileName << std::endl;
#endif
TopoDS_Shape aShape;
BRep_Builder aBuilder;
- BRepTools::Read(aShape, theFileName.
ToCString
(), aBuilder);
+ BRepTools::Read(aShape, theFileName.
c_str
(), aBuilder);
if (aShape.IsNull()) {
theError = "BREP Import failed";
}
return aShape;
}
if (aShape.IsNull()) {
theError = "BREP Import failed";
}
return aShape;
}
-
-}
-//}