]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix issue #20331 : API export STL CEA_2020/Lot1_Export_STL
authorJérôme <jerome.lucas@cesgenslab.fr>
Fri, 13 Nov 2020 10:12:54 +0000 (11:12 +0100)
committerJérôme <jerome.lucas@cesgenslab.fr>
Fri, 13 Nov 2020 10:12:54 +0000 (11:12 +0100)
src/ExchangeAPI/ExchangeAPI_Export.cpp
src/ExchangeAPI/ExchangeAPI_Export.h

index 5ee608e61f0b536b5c2a0a2b80b2e757d0265e60..b0d9e094ce4f2010c64ab761a6fd9a220d4afc2d 100644 (file)
@@ -57,8 +57,8 @@ ExchangeAPI_Export::ExchangeAPI_Export(const std::shared_ptr<ModelAPI_Feature>&
 ExchangeAPI_Export::ExchangeAPI_Export(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                                        const std::string & theFilePath,
                                        const ModelHighAPI_Selection& theSelectedShape,
-                                       double theDeflectionRelative,
-                                       double theDeflectionAbsolute,
+                                       const ModelHighAPI_Double& theDeflectionRelative,
+                                       const ModelHighAPI_Double& theDeflectionAbsolute,
                                        const bool theIsRelative,
                                        const bool theIsASCII)
   : ModelHighAPI_Interface(theFeature)
@@ -257,8 +257,8 @@ ExportPtr exportToXAO(const std::shared_ptr<ModelAPI_Document> & thePart,
 ExportPtr exportToSTL(const std::shared_ptr<ModelAPI_Document> & thePart,
       const std::string & theFilePath,
       const ModelHighAPI_Selection& theSelectedShape,
-      double  theDeflectionRelative,
-      double  theDeflectionAbsolute,
+      const ModelHighAPI_Double&  theDeflectionRelative,
+      const ModelHighAPI_Double&  theDeflectionAbsolute,
       const bool theIsRelative,
       const bool theIsASCII)
 {
index fb2703da58c44d239e4d26d5482431016bcfb452..0d5caa212c68aa51d282f948718f7d68cf18ee0e 100644 (file)
@@ -32,6 +32,7 @@
 #include <ExchangePlugin_ExportFeature.h>
 //--------------------------------------------------------------------------------------
 class ModelHighAPI_Selection;
+class ModelHighAPI_Double;
 //--------------------------------------------------------------------------------------
 
 
@@ -57,10 +58,10 @@ public:
     explicit ExchangeAPI_Export(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                                 const std::string & theFilePath,
                                 const ModelHighAPI_Selection& theSelectedShape,
-                                double  aDeflectionRelative ,
-                                double  aDeflectionAbsolute,
-                                const bool anIsRelative,
-                                const bool anIsASCII);
+                                const ModelHighAPI_Double&  theDeflectionRelative ,
+                                const ModelHighAPI_Double&  theDeflectionAbsolute,
+                                const bool theIsRelative,
+                                const bool theIsASCII);
 
   /// Constructor with values for XAO of selected result export.
   EXCHANGEAPI_EXPORT
@@ -148,8 +149,8 @@ EXCHANGEAPI_EXPORT
 ExportPtr exportToSTL(const std::shared_ptr<ModelAPI_Document> & thePart,
                       const std::string & theFilePath,
                       const ModelHighAPI_Selection& theSelectedShape,
-                      double  theDeflectionRelative,
-                      double  theDeflectionAbsolute,
+                      const ModelHighAPI_Double&  theDeflectionRelative,
+                      const ModelHighAPI_Double&  theDeflectionAbsolute,
                       const bool theIsRelative,
                       const bool theIsASCII);