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
Make same planes cannot be used twice in partition tool
[modules/shaper.git]
/
src
/
GeomAlgoAPI
/
GeomAlgoAPI_BREPImport.cpp
diff --git
a/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp
b/src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp
index 4dc8769bd91214c85a73fd1dbb09f6cc744c791d..e067acc9e94b3d09067a197063934ac7bebac752 100644
(file)
--- a/
src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp
+++ b/
src/GeomAlgoAPI/GeomAlgoAPI_BREPImport.cpp
@@
-6,6
+6,8
@@
#include <GeomAlgoAPI_BREPImport.h>
#include <GeomAlgoAPI_BREPImport.h>
+#include <TopoDS_Shape.hxx>
+
#include <BRepTools.hxx>
#include <BRep_Builder.hxx>
#include <BRepTools.hxx>
#include <BRep_Builder.hxx>
@@
-14,9
+16,9
@@
*
*/
//=============================================================================
*
*/
//=============================================================================
-
TopoDS_Shape
BREPImport(const std::string& theFileName,
- const std::string&,
- std::string& theError)
+
std::shared_ptr<GeomAPI_Shape>
BREPImport(const std::string& theFileName,
+
const std::string&,
+
std::string& theError)
{
#ifdef _DEBUG
std::cout << "Import BREP from file " << theFileName << std::endl;
{
#ifdef _DEBUG
std::cout << "Import BREP from file " << theFileName << std::endl;
@@
-27,5
+29,8
@@
TopoDS_Shape BREPImport(const std::string& theFileName,
if (aShape.IsNull()) {
theError = "BREP Import failed";
}
if (aShape.IsNull()) {
theError = "BREP Import failed";
}
- return aShape;
+
+ std::shared_ptr<GeomAPI_Shape> aGeomShape(new GeomAPI_Shape);
+ aGeomShape->setImpl(new TopoDS_Shape(aShape));
+ return aGeomShape;
}
}