Salome HOME
Merge branch 'jfa/40620_ExportXAO_separate_BREP'
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_XAOExport.cpp
index af8da2b2d853e94aa782a9cb31dd78322fdb660c..73e17a19a341d8fd7b6d48fde4e9c5f5ded6c604 100644 (file)
@@ -55,7 +55,8 @@ bool SetShapeToXAO(const std::shared_ptr<GeomAPI_Shape>& theShape,
 //=============================================================================
 bool XAOExport(const std::string& theFileName,
                XAO::Xao* theXao,
-               std::string& theError)
+               std::string& theError,
+               const std::string& theShapeFileName)
 {
   #ifdef _DEBUG
   std::cout << "Export XAO into file " << theFileName << std::endl;
@@ -72,7 +73,7 @@ bool XAOExport(const std::string& theFileName,
     bool aWasFree = aShape.Free(); // make top level topology free, same as imported
     if (!aWasFree)
       aShape.Free(Standard_True);
-    XAO::XaoExporter::saveToFile(theXao, theFileName, "");
+    XAO::XaoExporter::saveToFile(theXao, theFileName, theShapeFileName);
     if (!aWasFree)
       aShape.Free(Standard_False);
   } catch (XAO::XAO_Exception& e) {